Shader1.0学习笔记之SetTexture

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指定的常量颜色值

原文地址:https://www.cnblogs.com/blackteeth/p/10188913.html