ShadowDepthNormal.bsl 253 B

12345678910111213
  1. #include "$ENGINE$\ShadowDepthBase.bslinc"
  2. mixin ShadowDepth
  3. {
  4. code
  5. {
  6. float4 fsmain(ShadowVStoFS input, out float outDepth : SV_Depth) : SV_Target0
  7. {
  8. outDepth = saturate(-input.shadowPos * gInvDepthRange + gDepthBias);
  9. return 0;
  10. }
  11. };
  12. };