浏览代码

[material graph]Make newline platform standard.

/main
Tim Cooper 8 年前
当前提交
b6ca28a2
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/ShaderGenerator.cs

6
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/ShaderGenerator.cs


using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using UnityEngine.Graphing;
namespace UnityEngine.MaterialGraph

template = template.Replace("${VertexShaderBody}", vertexShaderBody);
}
return template;
return Regex.Replace(template, @"\r\n|\n\r|\n|\r", Environment.NewLine);
}
public static string GenerateSurfaceShader(PixelShaderNode node, MaterialOptions options, string shaderName, bool isPreview, out List<PropertyGenerator.TextureInfo> configuredTextures)

}
configuredTextures = shaderPropertiesVisitor.GetConfiguredTexutres();
return resultShader;
return Regex.Replace(resultShader, @"\r\n|\n\r|\n|\r", Environment.NewLine);
}
public int numberOfChunks

正在加载...
取消
保存