mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 16:28:36 -04:00
- Optional feature for decals that have a valid heightmap texture - Controllable with "Coverage amount" and "Coverage range", first property is a ParticleFloat which allows animating it based on decal's lifetime - Only contributes to existing opacity + attenuation mask - Build shaders https://files.facepunch.com/wheatleymf/1b2411b1/sbox-dev_eQfK467sN5.mp4
30 lines
552 B
Modula-2
30 lines
552 B
Modula-2
#include "scenesystem/decal.h"
|
|
|
|
[Handle:Sandbox.DecalSceneObject]
|
|
native class CDecalSceneObject as NativeEngine.CDecalSceneObject : CSceneObject
|
|
{
|
|
ITexture m_hColor;
|
|
ITexture m_hNormal;
|
|
ITexture m_hRMO;
|
|
|
|
uint m_nSortOrder;
|
|
uint m_nExclusionBitMask;
|
|
Vector4 m_vColorTint;
|
|
float m_flAttenuationAngle;
|
|
float m_flColorMix;
|
|
|
|
// Extra data
|
|
|
|
ITexture m_hEmission;
|
|
float m_flEmissionEnergy;
|
|
|
|
uint m_nSequenceIndex;
|
|
|
|
ITexture m_hHeight;
|
|
float m_flParallaxStrength;
|
|
|
|
int m_nSamplerIndex;
|
|
|
|
float m_flCoverageAmount;
|
|
float m_flCoverageRange;
|
|
} |