Material
Material defines the visual appearance of a surface.
Materials are created from a binary blob generated by the material compiler (matc). A Material is a template from which MaterialInstance objects can be created.
Creating instances: Use createInstance() to spawn an instance from this material. Instances inherit the material's properties but can override parameters (color, texture, etc.) for per-object customization. Always destroy instances with Engine.destroy() before destroying the material.
Material compilation: Use compile() to asynchronously compile specific material variants. This is useful for precompiling variants you know will be used, reducing first-time rendering stalls. After issuing multiple compile() calls, call Engine.flush() so the backend can start compilation work.
Material properties: Material properties are read-only and determined at compile time from the matc-generated blob. These include shading model, blending mode, transparency mode, and other rendering settings. To override parameters per-instance, use MaterialInstance.
Material defines the visual appearance of a surface.
Materials are created from a binary blob generated by the material compiler (matc). A Material is a template from which MaterialInstance objects can be created.
Creating instances: Use createInstance() to spawn an instance from this material. Instances inherit the material's properties but can override parameters (color, texture, etc.) for per-object customization. Always destroy instances with Engine.destroy() before destroying the material.
Material compilation: Use compile() to asynchronously compile specific material variants. This is useful for precompiling variants you know will be used, reducing first-time rendering stalls. After issuing multiple compile() calls, call Engine.flush() so the backend can start compilation work.
Material properties: Material properties are read-only and determined at compile time from the matc-generated blob. These include shading model, blending mode, transparency mode, and other rendering settings. To override parameters per-instance, use MaterialInstance.
Material defines the visual appearance of a surface.
Materials are created from a binary blob generated by the material compiler (matc). A Material is a template from which MaterialInstance objects can be created.
Creating instances: Use createInstance() to spawn an instance from this material. Instances inherit the material's properties but can override parameters (color, texture, etc.) for per-object customization. Always destroy instances with Engine.destroy() before destroying the material.
Material compilation: Use compile() to asynchronously compile specific material variants. This is useful for precompiling variants you know will be used, reducing first-time rendering stalls. After issuing multiple compile() calls, call Engine.flush() so the backend can start compilation work.
Material properties: Material properties are read-only and determined at compile time from the matc-generated blob. These include shading model, blending mode, transparency mode, and other rendering settings. To override parameters per-instance, use MaterialInstance.
Material defines the visual appearance of a surface.
Materials are created from a binary blob generated by the material compiler (matc). A Material is a template from which MaterialInstance objects can be created.
Creating instances: Use createInstance() to spawn an instance from this material. Instances inherit the material's properties but can override parameters (color, texture, etc.) for per-object customization. Always destroy instances with Engine.destroy() before destroying the material.
Material compilation: Use compile() to asynchronously compile specific material variants. This is useful for precompiling variants you know will be used, reducing first-time rendering stalls. After issuing multiple compile() calls, call Engine.flush() so the backend can start compilation work.
Material properties: Material properties are read-only and determined at compile time from the matc-generated blob. These include shading model, blending mode, transparency mode, and other rendering settings. To override parameters per-instance, use MaterialInstance.
Material defines the visual appearance of a surface.
Materials are created from a binary blob generated by the material compiler (matc). A Material is a template from which MaterialInstance objects can be created.
Creating instances: Use createInstance() to spawn an instance from this material. Instances inherit the material's properties but can override parameters (color, texture, etc.) for per-object customization. Always destroy instances with Engine.destroy() before destroying the material.
Material compilation: Use compile() to asynchronously compile specific material variants. This is useful for precompiling variants you know will be used, reducing first-time rendering stalls. After issuing multiple compile() calls, call Engine.flush() so the backend can start compilation work.
Material properties: Material properties are read-only and determined at compile time from the matc-generated blob. These include shading model, blending mode, transparency mode, and other rendering settings. To override parameters per-instance, use MaterialInstance.
Constructors
Types
Blending mode determines how a material's color is combined with the background.
Blending mode determines how a material's color is combined with the background.
Blending mode determines how a material's color is combined with the background.
Blending mode determines how a material's color is combined with the background.
Blending mode determines how a material's color is combined with the background.
Builder for creating Material objects from compiled material packages.
Builder for creating Material objects from compiled material packages.
Builder for creating Material objects from compiled material packages.
Builder for creating Material objects from compiled material packages.
Builder for creating Material objects from compiled material packages.
Priority queue for asynchronous material compilation.
Priority queue for asynchronous material compilation.
Priority queue for asynchronous material compilation.
Priority queue for asynchronous material compilation.
Priority queue for asynchronous material compilation.
Culling mode determines which faces are rendered.
Culling mode determines which faces are rendered.
Culling mode determines which faces are rendered.
Culling mode determines which faces are rendered.
Culling mode determines which faces are rendered.
Attribute interpolation type in the fragment shader.
Attribute interpolation type in the fragment shader.
Attribute interpolation type in the fragment shader.
Attribute interpolation type in the fragment shader.
Attribute interpolation type in the fragment shader.
Holds metadata about a material parameter.
Holds metadata about a material parameter.
Holds metadata about a material parameter.
Holds metadata about a material parameter.
Holds metadata about a material parameter.
Reflection rendering mode.
Reflection rendering mode.
Reflection rendering mode.
Reflection rendering mode.
Reflection rendering mode.
Refraction rendering mode.
Refraction rendering mode.
Refraction rendering mode.
Refraction rendering mode.
Refraction rendering mode.
Type of refracted surface.
Type of refracted surface.
Type of refracted surface.
Type of refracted surface.
Type of refracted surface.
Shading model determines how light interacts with the material surface.
Shading model determines how light interacts with the material surface.
Shading model determines how light interacts with the material surface.
Shading model determines how light interacts with the material surface.
Shading model determines how light interacts with the material surface.
How transparent objects are rendered.
How transparent objects are rendered.
How transparent objects are rendered.
How transparent objects are rendered.
How transparent objects are rendered.
UBO batching mode controls whether material instances share uniform buffers.
UBO batching mode controls whether material instances share uniform buffers.
UBO batching mode controls whether material instances share uniform buffers.
UBO batching mode controls whether material instances share uniform buffers.
UBO batching mode controls whether material instances share uniform buffers.
User variant filter bits for material compilation.
User variant filter bits for material compilation.
User variant filter bits for material compilation.
User variant filter bits for material compilation.
User variant filter bits for material compilation.
Vertex domain specifies which coordinate space vertices are defined in.
Vertex domain specifies which coordinate space vertices are defined in.
Vertex domain specifies which coordinate space vertices are defined in.
Vertex domain specifies which coordinate space vertices are defined in.
Vertex domain specifies which coordinate space vertices are defined in.
Functions
Asynchronously compile a subset of this Material's variants.
Asynchronously compile a subset of this Material's variants.
Asynchronously compile a subset of this Material's variants.
Asynchronously compile a subset of this Material's variants.
Asynchronously compile a subset of this Material's variants.
Create a new MaterialInstance from this material.
Create a new MaterialInstance with an optional debug name.
Create a new MaterialInstance from this material.
Create a new MaterialInstance with an optional debug name.
Create a new MaterialInstance from this material.
Create a new MaterialInstance with an optional debug name.
Create a new MaterialInstance from this material.
Create a new MaterialInstance with an optional debug name.
Create a new MaterialInstance from this material.
Create a new MaterialInstance with an optional debug name.
Get the blending mode.
Get the blending mode.
Get the blending mode.
Get the blending mode.
Get the blending mode.
Get the face culling mode.
Get the face culling mode.
Get the face culling mode.
Get the face culling mode.
Get the face culling mode.
Get this material's default instance.
Get this material's default instance.
Get this material's default instance.
Get this material's default instance.
Get this material's default instance.
Get the minimum required feature level for this material.
Get the minimum required feature level for this material.
Get the minimum required feature level for this material.
Get the minimum required feature level for this material.
Get the minimum required feature level for this material.
Get the vertex attribute interpolation mode.
Get the vertex attribute interpolation mode.
Get the vertex attribute interpolation mode.
Get the vertex attribute interpolation mode.
Get the vertex attribute interpolation mode.
Get the alpha threshold for MASKED blending mode.
Get the alpha threshold for MASKED blending mode.
Get the alpha threshold for MASKED blending mode.
Get the alpha threshold for MASKED blending mode.
Get the alpha threshold for MASKED blending mode.
Get the number of parameters declared by this material.
Get the number of parameters declared by this material.
Get the number of parameters declared by this material.
Get the number of parameters declared by this material.
Get the number of parameters declared by this material.
Get metadata about all parameters declared by this material.
Get metadata about all parameters declared by this material.
Get metadata about all parameters declared by this material.
Get metadata about all parameters declared by this material.
Get metadata about all parameters declared by this material.
Get the transform parameter name associated with a sampler.
Get the transform parameter name associated with a sampler.
Get the transform parameter name associated with a sampler.
Get the transform parameter name associated with a sampler.
Get the transform parameter name associated with a sampler.
Get the reflection mode.
Get the reflection mode.
Get the reflection mode.
Get the reflection mode.
Get the reflection mode.
Get the refraction mode.
Get the refraction mode.
Get the refraction mode.
Get the refraction mode.
Get the refraction mode.
Get the refraction surface type.
Get the refraction surface type.
Get the refraction surface type.
Get the refraction surface type.
Get the refraction surface type.
Get the set of vertex attributes required by this material.
Get the set of vertex attributes required by this material.
Get the set of vertex attributes required by this material.
Get the set of vertex attributes required by this material.
Get the set of vertex attributes required by this material.
Get the shading model.
Get the shading model.
Get the shading model.
Get the shading model.
Get the shading model.
Get the specular anti-aliasing threshold.
Get the specular anti-aliasing threshold.
Get the specular anti-aliasing threshold.
Get the specular anti-aliasing threshold.
Get the specular anti-aliasing threshold.
Get the specular anti-aliasing variance.
Get the specular anti-aliasing variance.
Get the specular anti-aliasing variance.
Get the specular anti-aliasing variance.
Get the specular anti-aliasing variance.
Get the transparency rendering mode (only relevant for TRANSPARENT/FADE blending).
Get the transparency rendering mode (only relevant for TRANSPARENT/FADE blending).
Get the transparency rendering mode (only relevant for TRANSPARENT/FADE blending).
Get the transparency rendering mode (only relevant for TRANSPARENT/FADE blending).
Get the transparency rendering mode (only relevant for TRANSPARENT/FADE blending).
Get the vertex coordinate space domain.
Get the vertex coordinate space domain.
Get the vertex coordinate space domain.
Get the vertex coordinate space domain.
Get the vertex coordinate space domain.
Check whether a parameter with the given name exists.
Check whether a parameter with the given name exists.
Check whether a parameter with the given name exists.
Check whether a parameter with the given name exists.
Check whether a parameter with the given name exists.
Check if alpha-to-coverage is enabled.
Check if alpha-to-coverage is enabled.
Check if alpha-to-coverage is enabled.
Check if alpha-to-coverage is enabled.
Check if alpha-to-coverage is enabled.
Check if color writes are enabled. Default is true.
Check if color writes are enabled. Default is true.
Check if color writes are enabled. Default is true.
Check if color writes are enabled. Default is true.
Check if color writes are enabled. Default is true.
Check if depth testing is enabled. Default is true.
Check if depth testing is enabled. Default is true.
Check if depth testing is enabled. Default is true.
Check if depth testing is enabled. Default is true.
Check if depth testing is enabled. Default is true.
Check if depth writes are enabled. Default is true.
Check if depth writes are enabled. Default is true.
Check if depth writes are enabled. Default is true.
Check if depth writes are enabled. Default is true.
Check if depth writes are enabled. Default is true.
Check if this material renders both front and back faces (double-sided). Default is false (back culling).
Check if this material renders both front and back faces (double-sided). Default is false (back culling).
Check if this material renders both front and back faces (double-sided). Default is false (back culling).
Check if this material renders both front and back faces (double-sided). Default is false (back culling).
Check if this material renders both front and back faces (double-sided). Default is false (back culling).
Set a boolean parameter on this material's default instance.
Set a float parameter on this material's default instance.
Set an integer parameter on this material's default instance.
Set a 2D vector parameter on this material's default instance.
Set a 3D vector parameter on this material's default instance.
Set a 4D vector parameter on this material's default instance.
Set a boolean parameter on this material's default instance.
Set a float parameter on this material's default instance.
Set an integer parameter on this material's default instance.
Set a 2D vector parameter on this material's default instance.
Set a 3D vector parameter on this material's default instance.
Set a 4D vector parameter on this material's default instance.
Set a boolean parameter on this material's default instance.
Set a float parameter on this material's default instance.
Set an integer parameter on this material's default instance.
Set a 2D vector parameter on this material's default instance.
Set a 3D vector parameter on this material's default instance.
Set a 4D vector parameter on this material's default instance.
Set a boolean parameter on this material's default instance.
Set a float parameter on this material's default instance.
Set an integer parameter on this material's default instance.
Set a 2D vector parameter on this material's default instance.
Set a 3D vector parameter on this material's default instance.
Set a 4D vector parameter on this material's default instance.
Set a boolean parameter on this material's default instance.
Set a float parameter on this material's default instance.
Set an integer parameter on this material's default instance.
Set a 2D vector parameter on this material's default instance.
Set a 3D vector parameter on this material's default instance.
Set a 4D vector parameter on this material's default instance.