1.語法
SetTexture [TextureName] {Texture Block}
2.Texture block combine 命令
combine src1 * src2 越乘越暗
combine src1 + src2 越加越亮
combine src1 lerp(src2) src3 插值運算使用src2的alpha值,注意如果alpha值為1,src1被使用;alpha值為0, src3被使用
src可以是m previous,constant,primary 或texture其中之一。
Previous指前一個SetTexture的結果
Primary指燈光計算的顏色
Texture指在SetTexture中指定的TextureName的顏色
Constant指ConstantColor指定的常量顏色值