浏览代码

Add Substract blend mode.

Add Substract blend mode.
/main
RinaldoTjan 8 年前
当前提交
3cbb8230
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 8
      MaterialGraphProject/Assets/Rinaldo/BlendModeNode.cs
  2. 2
      MaterialGraphProject/Assets/Rinaldo/BlendModesEnum.cs

8
MaterialGraphProject/Assets/Rinaldo/BlendModeNode.cs


outputString.Deindent();
outputString.AddShaderChunk("}", false);
break;
case BlendModesEnum.Substract:
outputString.AddShaderChunk(GetFunctionPrototype("arg1", "arg2"), false);
outputString.AddShaderChunk("{", false);
outputString.Indent();
outputString.AddShaderChunk("return arg1 - arg2;", false);
outputString.Deindent();
outputString.AddShaderChunk("}", false);
break;
}
visitor.AddShaderChunk(outputString.GetShaderString(0), true);

2
MaterialGraphProject/Assets/Rinaldo/BlendModesEnum.cs


// PinLight,
Screen,
SoftLight,
// Substract,
Substract,
// VividLight

正在加载...
取消
保存