s&box docs
GuidesRenderingEffectsDecals

DecalDefinition

A DecalDefinition holds what a single Decal should look like. It describes its color, normals, roughness, metalness and ambient occlusion. If you define a Height texture, it will define its parallax too.

A DecalDefinition holds what a single Decal should look like. It describes its color, normals, roughness, metalness and ambient occlusion. If you define a Height texture, it will define its parallax too.

ParameterMeaning
TintTint the color of the decal.
Color MixIf 1 the Color texture will be full alpha, if 0 it will be invisible. Useful if you just want normals.
Width, HeightThe size the decal should appear in the world by default.

Referenced API

Canonical API pages mentioned in this guide.

Created at:
Updated at: