The global namespace holding GLSL code of all built-in shaders and shader chunks.
Members
(static) diffspec
A general purpose diffuse-specular shader.
It is used internally by the Unity scene parses as the default shader. It works with several light related uniforms, but for now only one light per shader is supported as well it can only be a directiona light.
This shader is meant to make working with basic shading easier, but is not intended to be some sort of one-shader-to-rule-them-all, so in most scenarios a custom GLSL shader might be required.
Properties:
Name | Type | Description |
---|---|---|
diffspec |
(static) normal2color
A simple debug shader
The direction of the normal is translated into the color for each pixel. Simple and useful for debugging.
Properties:
Name | Type | Description |
---|---|---|
normal2color |
(static) standardLight
A collection of light related functions
Includes diffuse(), specular() and brightness()
Properties:
Name | Type | Description |
---|---|---|
standardLight |
(static) texture
A simple textured shader
The shader accepts a single texture and UV channel to map it to.
Properties:
Name | Type | Description |
---|---|---|
texture |