浏览代码

Fix shader template issue + bump release.

/main
Tim Cooper 7 年前
当前提交
216c2b0a
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Importers/ShaderGraphImporter.cs
  2. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Templates/lightweightPBRForwardPass.template
  3. 2
      MaterialGraphProject/Assets/UnityShaderEditor/package.json

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Importers/ShaderGraphImporter.cs


using UnityEditor;
using UnityEditor.Experimental.AssetImporters;
[ScriptedImporter(2, ShaderGraphImporter.ShaderGraphExtension)]
[ScriptedImporter(3, ShaderGraphImporter.ShaderGraphExtension)]
public class ShaderGraphImporter : ScriptedImporter
{
public const string ShaderGraphExtension = "shadergraph";

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Templates/lightweightPBRForwardPass.template


o.clipPos = clipPos;
#if defined(_SHADOWS_ENABLED) && !defined(_SHADOWS_CASCADE)
o.shadowCoord = ComputeShadowCoord(o.posWS.xyz);
o.shadowCoord = ComputeShadowCoord(lwWorldPos);
#else
o.shadowCoord = float4(0, 0, 0, 0);
#endif

2
MaterialGraphProject/Assets/UnityShaderEditor/package.json


{
"name": "com.unity.shadergraph",
"description": "Shader Graph",
"version": "0.1.12",
"version": "0.1.13",
"unity": "2018.1",
"dependencies": {
}
正在加载...
取消
保存