浏览代码

StandardInput cannot be inside LightweightLighting or it may cause errors with other standard shaders.

/Add-support-for-light-specular-color-tint
Felipe Lira 7 年前
当前提交
0c481f08
共有 3 个文件被更改,包括 2 次插入1 次删除
  1. 1
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightCore.cginc
  2. 1
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandard.shader
  3. 1
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardSimpleLighting.shader

1
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightCore.cginc


#define LIGHTWEIGHT_PIPELINE_CORE_INCLUDED
#include "UnityCG.cginc"
#include "UnityStandardInput.cginc"
#define MAX_VISIBLE_LIGHTS 16

1
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandard.shader


#pragma vertex LitPassVertex
#pragma fragment LitPassFragment
#include "UnityStandardInput.cginc"
#include "LightweightPassLit.cginc"
ENDCG
}

1
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardSimpleLighting.shader


#pragma vertex LitPassVertex
#pragma fragment LitPassFragmentSimple
#include "UnityStandardInput.cginc"
#include "LightweightPassLit.cginc"
ENDCG
}

正在加载...
取消
保存