logo

Module rg3d::material[][src]

Expand description

Material is a set of parameters for a shader. This module contains everything related to materials.

See Material struct docs for more info.

Modules

Shader is a script for graphics card. This module contains everything related to shaders.

Structs

Material defines a set of values for a shader. Materials usually contains textures (diffuse, normal, height, emission, etc. maps), numerical values (floats, integers), vectors, booleans, matrices and arrays of each type, except textures. Each parameter can be changed in runtime giving you the ability to create animated materials. However in practice, most materials are static, this means that once it created, it won’t be changed anymore.

Enums

A set of possible errors that can occur when working with materials.

A value of a property that will be used for rendering with a shader.