浏览代码

Fixed implicit cast in shadowpass.

/main
Felipe Lira 7 年前
当前提交
7006dd33
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/LightweightPassShadow.hlsl

4
ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/LightweightPassShadow.hlsl


{
LightweightVertexOutput o = LitPassVertex(v);
float invNdotL = 1.0 - saturate(dot(_LightDirection, o.normal));
float invNdotL = 1.0 - saturate(dot(_LightDirection, o.normal.xyz));
o.posWSShininess.xyz = o.normal * scale.xxx + o.posWSShininess.xyz;
o.posWSShininess.xyz = o.normal.xyz * scale.xxx + o.posWSShininess.xyz;
float4 clipPos = TransformWorldToHClip(o.posWSShininess.xyz);
// _ShadowBias.x sign depens on if platform has reversed z buffer

正在加载...
取消
保存