浏览代码

PR fixes #1

- Change output shader layout to fix subgraphs
/main
Peter Bay Bastian 6 年前
当前提交
a7789fc7
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      ShaderGraph/com.unity.shadergraph/Editor/Data/Util/GraphUtil.cs

5
ShaderGraph/com.unity.shadergraph/Editor/Data/Util/GraphUtil.cs


finalShader.AppendLines(shaderProperties.GetPropertiesDeclaration(0));
finalShader.AppendLines(surfaceDescriptionInputStruct.ToString());
finalShader.AppendNewLine();
finalShader.AppendLines(surfaceDescriptionInputStruct.ToString());
finalShader.AppendNewLine();
finalShader.AppendLines(surfaceDescriptionStruct.ToString());
finalShader.AppendNewLine();
finalShader.AppendLines(surfaceDescriptionFunction.ToString());

正在加载...
取消
保存