zoukankan      html  css  js  c++  java
  • 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指定的常量颜色值

  • 相关阅读:
    AlphaToCoverage solution
    PhyreEngine3.8 MSAA resolution
    渲染错误
    tomcat
    Jupyter
    Flask
    Highcharts20151130
    CodeMirror
    响应式
    import
  • 原文地址:https://www.cnblogs.com/blackteeth/p/10188913.html
Copyright © 2011-2022 走看看