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版本。

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