StencilUsage.cs 542 B

1234567891011121314151617181920
  1. namespace UnityEngine.Rendering.Universal.Internal
  2. {
  3. // Stencil usage for deferred renderer.
  4. enum StencilUsage
  5. {
  6. // Bits [0,3] are reserved for users
  7. UserMask = 0b_0000_1111,
  8. // Bit [4] is used for stenciling light shapes.
  9. StencilLight = 0b_0001_0000,
  10. // Bits [5,6] are used for material types.
  11. MaterialMask = 0b_0110_0000,
  12. MaterialUnlit = 0b_0000_0000,
  13. MaterialLit = 0b_0010_0000,
  14. MaterialSimpleLit = 0b_0100_0000
  15. // Bit [7] is reserved.
  16. }
  17. }