Material

From RealMotion Wiki

3D/Material/Material

Creates material for a 3D model. ​

Description

The Material box allows creation of any type of 3D material. All parameters can be exposed and changed in real time.
Used with the Material Override box, a Model can morph between materials dynamically.

Note: Alpha component is not active for the parameters Ambient Color, Diffuse Color, Specular Color, Emissive Color.

Note: With the use of HDR in RealMotion, the parameters Specular Color, Specular Factor and Shininess are more sensitive.

Inputs

Ambient Color Float4 Overrides the parameter Ambient Color.
Ambient Map 2D Texture Sets the Ambient Map. Commonly, the same map is used for the Ambient Color and the Diffuse Color.
Diffuse Color Float4 Overrides the parameter Diffuse Color.
Diffuse Map 2D Texture Sets the Diffuse Map. Commonly, the same map is used for the Ambient Color and the Diffuse Color.
Emissive Color Float4 Overrides the parameter Emissive Color.
Fresnel Factor Float Overrides the parameter Fresnel Factor.
Normal Map 2D Texture Sets the Normal Map.
Normal Map Factor Float Overrides the parameter Normal Map Factor.
Shininess Factor Float Overrides the parameter Shininess Factor.
Specular Color Float4 Overrides the parameter Specular Color.
Specular Factor Float Overrides the parameter Specular Factor.
Specular Map 2D Texture Sets the Specular Map.
Transparency Factor Float Overrides the parameter Transparency Factor.

Outputs

Material Material Outputs the created material.

Parameters

General

Material Name String Sets the name of the material.
Technique String Sets the techniques used by the shader to render the material.
Cull Face Mode String Selects the face culling mode of the material. None mode calculates all triangles of a Model, Front calculates only the triangles facing the camera, Back mode calculates only the triangles not facing the camera.
Blend Mode String Selects the blend mode used to blend the material with other object in the scene.

Maps

Enable Input Pin: Ambient Map Toggle Enables the Input Pin Ambient Map.
Enable Input Pin: Diffuse Map Toggle Enables Input Pin Diffuse Map.
Enable Input Pin: Specular Map Toggle Enables the Input Pin Specular Map.
Enable Input Pin: Normal Map Toggle Enables the Input Pin Normal Map.

Colors

Ambient Color Toggle Enables the Input Pin Ambient Color.
Ambient Color Float4 Sets the Ambient Color. Commonly, the same color is used for the Ambient Color and the Diffuse Color. The Ambient Color is multiplied with the Ambient Map when a Ambient Map is inputted.
Diffuse Color Toggle Enables the Input Pin Diffuse Color.
Diffuse Color Float4 Sets the Diffuse Color. Commonly, the same color is used for the Ambient Color and the Diffuse Color. The Diffuse Color is multiplied with the Diffuse Map when a Diffuse Map is inputted.
Specular Color Toggle Enables the Input Pin Specular Color.
Specular Color Float4 Sets the Specular Color. The Specular Color is multiplied with the Specular Map when a Specular Map is inputted.
Emissive Color Toggle Enables the Input Pin Emissive Color.
Emissive Color Float4 Sets the Emissive Color. Emissive Color is also known as the Self-Illumination color.

Factors

Transparency Factor Toggle Enables the Input Pin Transparency Factor.
Transparency Factor Float Sets the Transparency Factor. An opaque object has a Transparency Factor of 0.0.
Specular Factor Toggle Enables the Input Pin Specular Factor.
Specular Factor Float Sets the Specular Factor. A matte object has a Specular Factor of 0.0. The Specular Factor multiplies with the Specular Map when a Specular Map is inputted.
Shininess Factor Toggle Enables the Input Pin Shininess Factor.
Shininess Factor Float Sets the Shininess Factor, also known as the Glossiness Factor.
Fresnel Factor Toggle Enables the Input Pin Fresnel Factor.
Fresnel Factor Float Sets the Fresnel Factor.
Normal Map Factor Toggle Enables the Input Pin ormal Map Factor.
Normal Map Factor Float Multiplies with the Normal Map when a Normal Map is inputted.

See Also

Boxes related

Material Override, Model 3D, Model Shader, Scene Renderer, Texture, Texture Cubemap, ​​

Version Information

Current documentation version: 2.1.0. ​ ​