User Tools

Site Tools


01_user_documentation:03_interacting_with_groimp:02_panels:19_assets_libraries:04_shader

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:

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