浏览代码

Remove addSub and change to linearlight_addsub

Linearlight and addsub calculation is the same. removing addsub slot.
/main
RinaldoTjan 8 年前
当前提交
0a68f589
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 5
      MaterialGraphProject/Assets/Rinaldo/BlendModeNode.cs
  2. 3
      MaterialGraphProject/Assets/Rinaldo/BlendModesEnum.cs

5
MaterialGraphProject/Assets/Rinaldo/BlendModeNode.cs


var outputString = new ShaderGenerator();
switch (m_BlendMode)
{
case BlendModesEnum.AddSub:
/* case BlendModesEnum.AddSub:
outputString.AddShaderChunk(GetFunctionPrototype("arg1", "arg2"), false);
outputString.AddShaderChunk("{", false);
outputString.Indent();

break;
*/
case BlendModesEnum.Burn:
outputString.AddShaderChunk(GetFunctionPrototype("arg1", "arg2"), false);
outputString.AddShaderChunk("{", false);

outputString.Deindent();
outputString.AddShaderChunk("}", false);
break;
case BlendModesEnum.LinearLight:
case BlendModesEnum.LinearLight_AddSub:
outputString.AddShaderChunk(GetFunctionPrototype("arg1", "arg2"), false);
outputString.AddShaderChunk("{", false);
outputString.Indent();

3
MaterialGraphProject/Assets/Rinaldo/BlendModesEnum.cs


{
public enum BlendModesEnum
{
AddSub,
Burn,
Darken,
Difference,

Lighten,
LinearBurn,
LinearDodge,
LinearLight,
LinearLight_AddSub,
Multiply,
Negation,
Overlay,

正在加载...
取消
保存