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
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

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: 03.07.2017
Build: ()