ComponentRef

Material

Material

A definition of material properties for rendered objects.

See also: UseMaterial, MaterialTexture

Properties

Textures

A list of MaterialTexture - components that each represents a texture that will be blended together for the finished material.

WireframeWidth

The width of lines in wireframe-mode. Default value is 4.

Shading

The style of shading that this material will use. Can have one of the following values:

  • Smooth - Smooth shading
  • Flat - Flat shading
  • Wireframe - Wireframe.

Default is Smooth.

Color

The color of the material. See also RenderSetColor for an alternative of setting individual colors to models using the same material.

Light

If set then the material will be lit.

Blend

Controls the blending mode used. Can have one of the following values:

  • None
  • Alpha/OneMinusSourceAlpha
  • Alpha/One
  • Color/OneMinusSourceColor
  • AlphaSaturate/One

See external link: Transparency, Translucency, and Blending (OpenGL.org).

ZBuffer

Material will use Z-buffer when rendering. Default is set.

DrawBackFace

If this value is set then surfaces turned away from the camera will be rendered. Set this value when rendereing transparent surfaces. Default is off.

Font

Set to a Font and then use RenderText to display text using the font.

Shader

If set to a Shader then the material will use the shader for fragment (pixel) and vertex processing.

Green Marinee theme adapted by David Gilbert, powered by PmWiki