This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Decals

A decal is a material projection on the surface. It allows you to add a lot of additional details at basically no performance cost. Besides, sometimes it is merely impossible to bake all the details into textures considering the huge amount of probabilities of the coordinates where the interaction can take place (e.g. the bullet holes, bloodstains, ashes etc.) Decals can disappear after the specified life time period.

Decal-Based Tree Remnants on Sand

Types of Decals

There are 3 types of decals that differ in the way they are projected:

  •  Object Decal is a decal that is projected right onto the object's geometry and gets a new defined shape.
  •  Terrain Decal is a decal projected on a terrain with the correct LOD transitions of vertices.
  •  Deferred Decal is a decal rendered based on the image deferred buffer depth value and there is no real geometry rendered at all. Such decals are preferable from the performance cost, though they do not support instancing and each decal costs at least a DIP.

See Also

  • A Decal class to edit decals via UnigineScript
Last update: 2017-07-03
Build: ()