浏览代码

Fixed spotlights in LW PBR.

/tag-1.1.4-preview
Felipe Lira 7 年前
当前提交
3fa1a444
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 6
      ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/LightweightPassLit.hlsl

6
ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/LightweightPassLit.hlsl


{
float2 uv : TEXCOORD0;
DECLARE_LIGHTMAP_OR_SH(lightmapUV, vertexSH, 1);
#ifdef _ADDITIONAL_LIGHTS
#endif
#ifdef _NORMALMAP
half4 normal : TEXCOORD3; // xyz: normal, w: viewDir.x

{
inputData = (InputData)0;
#ifdef _ADDITIONAL_LIGHTS
#endif
#ifdef _NORMALMAP
half3 viewDir = half3(IN.normal.w, IN.tangent.w, IN.binormal.w);

#endif
#endif
#if _ADDITIONAL_LIGHTS
#endif
return o;
}

正在加载...
取消
保存