GradientTexture


[GradientTexture] displays a 2D texture property as a gradient editor.
[GradientTexture] _Ramp ("Ramp", 2D) = "white" {}
Syntax
[GradientTexture]
[Gradient]
Behavior
- Intended for
2Dtexture properties. - KIBAMaterialGUI stores gradient metadata next to the material and bakes a texture for shader use.
- Texture properties ending in
_gradientor_gradienttexare also treated as gradient candidates. - The material still receives a texture value, so shader code reads it as a normal texture.
Example
Properties
{
[Group(Color)] [GradientTexture] _ColorRamp ("Color Ramp", 2D) = "white" {}
}