ShaderLab:Propertiesの種類

Properties{}ブロックの中に記述するPropertyは次の種類がある。 Float Range (Range):スライダで範囲指定 Color(Color):RGBAの4次元配列。各値は0~1 Texuture2D(2D):テクスチャ Rectangle(Rect): Cubemap(Cube):Cubemap Float(Float):不動小数点数 Vector(Vector):ベクトル配列 サンプル Properties { // properti…