UnityShader笔记(一)变量
2D
_MainTex ("_MainTex2D", 2D) = "white" {}
- Tiling (贴图重复度)
- Offset (贴图偏移值)
3D
_MainTex3D("_MainTex3D", 3D) = "" {}
Cube
_MainTexCube("_MainTexCube", Cube) = "" {}
Color
_Color("Color", Color) = (1,1,1,1)
int
_Int("Int",int) = 0
float
_Float("Float",float) = 0
IntRange
[IntRange] _IntRange("IntRange",Range(0,5)) = 0
Toggle
[Toggle] _Toggle("Toggle",Range(0,1)) = 1
Enum
[Enum(UnityEngine.Rendering.CullMode)] _Enum("Enum",float) = 1
Vector
_Vector("Vector",Vector) = (0,0,0,0)