Singularity/Library/PackageCache/com.unity.render-pipelines..../Runtime/StencilUsage.cs

21 lines
542 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
namespace UnityEngine.Rendering.Universal.Internal
{
// Stencil usage for deferred renderer.
enum StencilUsage
{
// Bits [0,3] are reserved for users
UserMask = 0b_0000_1111,
// Bit [4] is used for stenciling light shapes.
StencilLight = 0b_0001_0000,
// Bits [5,6] are used for material types.
MaterialMask = 0b_0110_0000,
MaterialUnlit = 0b_0000_0000,
MaterialLit = 0b_0010_0000,
MaterialSimpleLit = 0b_0100_0000
// Bit [7] is reserved.
}
}