浏览代码

Update include generator to use space instead of tabs

/main
sebastienlagarde 7 年前
当前提交
16cef1a8
共有 3 个文件被更改,包括 12 次插入3 次删除
  1. 5
      com.unity.render-pipelines.core/CoreRP/Editor/ShaderGenerator/ShaderTypeGeneration.cs
  2. 5
      com.unity.shadergraph/Editor/Data/Util/PropertyCollector.cs
  3. 5
      com.unity.shadergraph/Editor/Data/Util/ShaderGenerator.cs

5
com.unity.render-pipelines.core/CoreRP/Editor/ShaderGenerator/ShaderTypeGeneration.cs


}
}
shaderText += "\treturn value." + acc.name + swizzle + ";\n";
shaderText +=
//"\t"
" " // unity convention use space instead of tab...
+ "return value." + acc.name + swizzle + ";\n";
shaderText += "}\n";
}

5
com.unity.shadergraph/Editor/Data/Util/PropertyCollector.cs


foreach (var prop in m_Properties.Where(x => x.generatePropertyBlock))
{
for (var i = 0; i < baseIndentLevel; i++)
sb.Append("\t");
{
//sb.Append("\t");
sb.Append(" "); // unity convention use space instead of tab...
}
sb.AppendLine(prop.GetPropertyBlockString());
}
return sb.ToString();

5
com.unity.shadergraph/Editor/Data/Util/ShaderGenerator.cs


{
var line = lines[index];
for (var i = 0; i < shaderChunk.chunkIndentLevel + baseIndentLevel; i++)
sb.Append("\t");
{
//sb.Append("\t");
sb.Append(" "); // unity convention use space instead of tab...
}
sb.AppendLine(line);
appendedNewline = true;

正在加载...
取消
保存