This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Decals

A decal is a material projection on the surface. In fact, decals perform changing material parameters of the surface on which these decals are projected. It allows you to add a lot of additional details at basically no performance cost. Decals are rendered in buffers (they change buffer textures) and works only with deferred objects. A decal is a perfect object for bullet holes, bloodstains, ashes, etc.

Decals support decal_base material only. The behavior of decals is similar to detail textures of the material.

Projected Decal with normal map.

Types of Decals

There are 3 types of decals:

  •  Orthographic Decal is a decal projected onto a surface by means of orthographic projection.
  •  Projected Decal is a decal projected onto a surface by means of the perspective projection.
  •  Mesh Decal is a decal based on the arbitrary .mesh file and projected onto a surface by means of the orthographic projection.

See Also

Last update: 2017-07-03
Build: ()