01_user_documentation:03_interacting_with_groimp:02_panels:19_assets_libraries:04_shader
Table of Contents
Shader Library
provided by the plugin ShaderLibrary
A set of predefined shaders of often used materials(including soild, leafs or greenhouse parts). Shaders are provided in as GGX,Ward and Phong shader. They are also categorized into RGBA and spectral shaders.
Functionalities
From the panel it is possible to use the following functions on a selected shader:
- apply: apply on a selected 3d object
- add: adds it to the shader explorer
- * Shaders: open the shader explorer
in RGG
It is possible to create the shader directly from rgg code without any GUI interaction using this command:
shaderLib("spectral/phong/polished_metal")
For example in the construction of a module:
module A(float len) extends Sphere(0.1) { {setShader(shaderLib("spectral/phong/polished_metal"));} }
01_user_documentation/03_interacting_with_groimp/02_panels/19_assets_libraries/04_shader.txt ยท Last modified: by Tim

