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.).
- Material
Property Group - Property group stores a bunch of named values of a fixed set of types, that will be used for rendering with some shader.
- Material
Texture Binding - 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§
- Material
Error - A set of possible errors that can occur when working with materials.
- Material
Property - A set of possible material property types.
- Material
Resource Binding - A value of a resource binding that will be used for rendering.
Traits§
- Material
Resource Extension - Extension methods for material resource.
Type Aliases§
- Material
Resource - 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.