class
TDecalGetters
template<typename Derived, bool IsRenderProxy>CRTP getter interface providing shared read access for decal data to both Decal and render::DecalProxy.
Public
Methods
GetSize
Vector2 GetSize() const
Width and height of the decal.
GetMaterial
const MaterialType &GetMaterial() const
Determines the material to use when rendering the decal.
GetMaxDistance
float GetMaxDistance() const
Determines the maximum distance (from its origin) at which the decal is displayed.
GetLayerMask
u32 GetLayerMask() const
Bitfield that allows you to mask on which objects will the decal be projected onto.
Only objects with the matching layers will be projected onto. Note that decal layer mask only supports 32-bits and objects with layers in bits >= 32 will always be projected onto.
GetLayer
u64 GetLayer() const
Determines the layer that controls whether a system is considered visible in a specific camera.
Layer must match camera layer bitfield in order for the camera to render the decal.