浏览代码

fix gradient node (with more cofee)

/main
Florent Guinier 7 年前
当前提交
264cb36f
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 5
      MaterialGraphProject/Assets/Eduardo/FunctionNInNOut.cs
  2. 2
      MaterialGraphProject/Assets/_MingWai/GradientNode.cs

5
MaterialGraphProject/Assets/Eduardo/FunctionNInNOut.cs


")";
}
private string GetFunctionCall(GenerationMode generationMode)
protected virtual string GetFunctionCall(GenerationMode generationMode)
{
string prefix = "";
string sufix = "";

var outputString = new ShaderGenerator();
outputString.AddShaderChunk(GetOutputDeclaration(), false);
outputString.AddShaderChunk(GetFunctionCall(generationMode), false);
visitor.AddShaderChunk(outputString.GetShaderString(0), true);
}

2
MaterialGraphProject/Assets/_MingWai/GradientNode.cs


get { return true; }
}
protected virtual string GetFunctionCall(GenerationMode generationMode)
protected override string GetFunctionCall(GenerationMode generationMode)
{
//here we don't want to generate final value as the parameters are used as output
//TODO allow to define parameters as ouput in the function prototype and handle

正在加载...
取消
保存