ShadowProjectStencil.bsl 520 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include "$ENGINE$/ShadowProjectionCommon.bslinc"
  2. technique ShadowProjectStencil
  3. {
  4. mixin ShadowProjectionCommon;
  5. depth
  6. {
  7. write = false;
  8. };
  9. blend
  10. {
  11. target
  12. {
  13. writemask = empty;
  14. };
  15. };
  16. raster
  17. {
  18. cull = none;
  19. };
  20. #ifdef USE_ZFAIL_STENCIL
  21. stencil
  22. {
  23. enabled = true;
  24. front = { keep, incwrap, keep, always };
  25. back = { keep, decwrap, keep, always };
  26. };
  27. #else
  28. stencil
  29. {
  30. enabled = true;
  31. front = { keep, keep, incwrap, always };
  32. back = { keep, keep, decwrap, always };
  33. };
  34. #endif
  35. };