Shader "attribute/attribute definition" {////attribute definition there is no semicolon to remember properties {//Define color properties change corresponding material ball color sync change _color ("color", color) = (1,1,1,1)//define 2d map WH Ite:material color is white The default value can also be modified to Black..._maintex1 ("Albedo1 (RGB)", 2D) = "White" {}//default _maintex2 ("Albedo2 (RGB)" , 2D) = "" {}//defines the floating-point type, in the monitor, you can modify the 0.5: Default value _glossiness ("Smoothness", Range (0,1)) = 0.5//defines the texture properties of the rectangle (not 2-square) by a slider that labels the maximum minimum value _ Rect ("rect", rect) = "White" {}//defines the cubic map texture attribute _cube ("cube", cube) = "White" {}//defines float _float ("float", float) = 10//definition Four element container _ Vect ("Vect", Vector) = (100,100,0,0)}fallback "Diffuse"}
Shader's study note four