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: 2017-07-03
Build: ()