PPBuildHiZ.bsl 314 B

123456789101112131415161718
  1. #include "$ENGINE$\PPBase.bslinc"
  2. technique PPBuildHiZ
  3. {
  4. mixin PPBase;
  5. code
  6. {
  7. SamplerState gDepthSamp;
  8. Texture2D gDepthTex;
  9. float fsmain(VStoFS input) : SV_Target0
  10. {
  11. float4 depth = gDepthTex.Gather(gDepthSamp, input.uv0);
  12. return min(min(depth.x, depth.y), min(depth.z, depth.w));
  13. }
  14. };
  15. };