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
Tutorials

decal_terrain_base

A decal_terrain_base material creates coverings for terrain decals.

An unique feature of this material is a decal mask with up to four detail materials.

States

Rendering passes and options available for the material.

States

Materials editor, States tab.

Passes

Options

Detail 0, 1, 2 and 3

Rendering modes for detail materials:

  • None - detail material is not rendered
  • Overlay - detail material is rendered in the overlay rendering mode (a material is blended with terrain diffuse color)
  • Overlap - detail material is rendered in the overlap rendering mode (only a decal material is applied, underneath terrain textures are ignored)

Enabling Detail 0, 1, 2 or 3 (or their combination) activates additional detail textures and detail parameters.

Textures

Textures available for the material. All of the textures fields have set default textures, which can be replaced by your own ones. Availability of some textures depends on the set States values.

Textures

Materials editor, Textures tab.

Base

Base material textures:

  • Diffuse - base material diffuse texture.
  • Normal - base material normal texture.
  • Specular - base material specular texture.

Detail

Detail material textures:

  • Diffuse 0 - first detail material diffuse map.
  • Normal 0 - first detail material normal map.
  • Diffuse 1 - second detail material diffuse map.
  • Normal 1 - second detail material normal map.
  • Diffuse 2 - third detail material diffuse map.
  • Normal 2 - third detail material normal map.
  • Diffuse 3 - fourth detail material diffuse map.
  • Normal 3 - fourth detail material normal map.
Notice
Detail textures are present only is the respective Detail options are enabled.

Parameters

Parameters available for the material. All of the parameters have set default values, which can be replaced by your own ones. Availability of some parameters depends on the set States field values.

Materials editor, Parameters tab.

Transform

Texture transformation parameters:

  • Base - base texture coordinates transformation.
  • Detail 0 - first detail texture coordinates transformation.
  • Detail 1 - second detail texture coordinates transformation.
  • Detail 2 - third detail texture coordinates transformation.
  • Detail 3 - fourth detail texture coordinates transformation.

Detail 0, 1, 2 and 3

Enabling detail materials in each rendering mode activates different set of additional parameters:

  1. Overlay mode:
    • Diffuse - detail diffuse map scale
    • Normal - detail normal map scale
  2. Overlap mode:
    • Value - detail texture overlap value
    • Threshold - detail texture overlap threshold
    • Diffuse - detail diffuse map scale
    • Normal - detail normal map scale

Value

A coefficient to modify the size of a detail material spreading inside the applied mask.

The lower the value, the bigger area is covered with the overlap material.

Threshold

A coefficient to modify the smoothness of the overlap detail material around the edges.

The higher the value, the bigger the blending area between overlap detail material and terrain diffuse map or other detail materials underneath will be.

Detail

Detail material parameters:

  • Diffuse - detail diffuse texture scale.
  • Normal - detail normal texture scale.
  • Specular - detail specular texture scale.

Ambient

Ambient light parameters:

Emission

Ambient emission parameters:

  • Color - ambient emission color picker.
  • Scale - ambient emission texture scale.
  • Glow - glow post-processing scale.

Shading

Shading parameters:

Last update: 2017-07-03