固定管線 材質使用語法
- 定義材質屬性
_MainTex("Main Texture",2D)="White"{}
- 設置紋理
setTexture[_MainTex]
- 設置紋理參數
- texture * Primary 混合定義的紋理屬性
- double 雙倍透明
setTexture[_MainTex]
Combine texture * Primary double
- 設置2個或更多紋理
注意 紋理最大個數是顯卡決定
setTexture[]
setTexture[]
以上定義 下面的會覆蓋上面的
混合紋理
setTexture[]{
Combine texture * Primary double
}
setTexture[]{
Combine texture * previous
}