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

21 lines
542 B
C#
Raw Permalink Normal View History

2024-10-27 10:53:47 +03: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.
}
}