UnityShader笔记(一)变量
作者:互联网
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)
标签:float,变量,Vector,Color,Enum,Toggle,笔记,IntRange,UnityShader 来源: https://blog.csdn.net/onelei1994/article/details/99676180