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.

mesh_chain_base

A mesh_chain_base material is used for fast tracks and chains rendering without CPU side transformation calculations. It is applied to skinned meshes.

For a shader to work correctly you should be aware of the following:

  • A skinned mesh file can contain just two animation frames: the first with a bind pose, the second with real bones transformations (you can always use multiple frames or even update transformations manually).
  • To move a chain you should just update a Bone offset material parameter without affecting bone transformations.
  • As a shader performs linear interpolation between neighbor bones (links), they should be placed in successive order in a skinned mesh file.
Notice
You can examine data/samples/materials/chain_00 and chain_01 samples for better understanding.

States

In the States tab you can set rendering passes and available options.

States

Material Editor, States tab.

Passes

Specify if the material is rendered during the following rendering passes:

Options

  • Detail - detail material rendering mode.

Textures

The field represents 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

Material Editor, Textures tab.

Base

A set of the textures for a base material:

Detail

A set of the textures for a detail material:

Notice
Detail textures are present when a Detail option is enabled.

Additional

A set of additional textures:

  • Ambient - environment modulation texture.

Parameters

The field represents 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.

Textures

Material Editor, Textures tab.

Bone offset

A constant, specifying an offset of the bone for one chain step. 1 by default.

Notice
A parameter can be modified in the .mat file.

Transform

Texture transformation parameters:

  • Base - base texture coordinates transformation.
  • Detail - detail texture coordinates transformation.

Auxiliary

Auxiliary rendering pass parameters:

Detail

Detail material parameters:

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

Ambient

Ambient light parameters:

Shading

Shading parameters:

Last update: 03.07.2017
Build: ()