Skip to content

StandardDecal Shader

Andrew Cassidy edited this page Dec 24, 2020 · 2 revisions

StandardDecal is a general use decal shader that can be customized with keywords.

Global Properties

  • _Decal (Texture): The main diffuse decal texture.
  • _Background (Color): The background color in the preview "sticker" state. Specular in the alpha. Default: (0.9, 0.9, 0.9, 0.7).

Keyword Properties

  • DECAL_BUMPMAP: enables normal mapping on the decal (and disables using the part base normal).
    • _BumpMap (Texture): The decal normal map.
  • DECAL_SPECMAP: enables specular mapping on the decal.
    • _SpecMap (Texture): The decal specular map.
    • _SpecColor (Color): Specular color multiplier. Default: (0.25, 0.25, 0.25).
    • _Shininess (Float): Specular exponent. Default: 0.3
  • DECAL_EMISSIVE: enables emissive mapping on the decal.
    • _Emissive (Texture): The decal emissive map.
    • _EmissiveColor (Color): Emissive color multiplier. Default: (0,0,0).
  • DECAL_SDF_ALPHA: enables using the alpha channel of _Decal as a signed distance function
Clone this wiki locally