Module material

Module material 

Source
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§

loader
Material loader.
shader
Shader is a script for graphics card, it defines how to draw an object. It also defines a set of external resources needed for the rendering.

Structs§

Material
Material defines a set of resource bindings for a shader. It could be textures and property groups. Textures contains graphical information (such as diffuse, normal, height, emission, etc. maps), while property groups contains numerical values (matrices, vectors, numbers, etc.).
MaterialPropertyGroup
Property group stores a bunch of named values of a fixed set of types, that will be used for rendering with some shader.
MaterialTextureBinding
A texture binding.
STANDARD
Standard PBR material. Keep in mind that this material is global, any modification of it will reflect on every other usage of it.
STANDARD_2D
Standard 2D material. Keep in mind that this material is global, any modification of it will reflect on every other usage of it.
STANDARD_PARTICLE_SYSTEM
Standard particle system material. Keep in mind that this material is global, any modification of it will reflect on every other usage of it.
STANDARD_SPRITE
Standard sprite material. Keep in mind that this material is global, any modification of it will reflect on every other usage of it.
STANDARD_TERRAIN
Standard terrain material. Keep in mind that this material is global, any modification of it will reflect on every other usage of it.
STANDARD_TWOSIDES
Standard two-sided material. Keep in mind that this material is global, any modification of it will reflect on every other usage of it.

Enums§

MaterialError
A set of possible errors that can occur when working with materials.
MaterialProperty
A set of possible material property types.
MaterialResourceBinding
A value of a resource binding that will be used for rendering.

Traits§

MaterialResourceExtension
Extension methods for material resource.

Type Aliases§

MaterialResource
Material resource is a material instance that can be used across multiple objects. It is useful when you need to have multiple objects that have the same material.