Class Material
A shaded material for geometry encapsulating its Shader
s, graphics pipeline state, and optionally a Texture
.
Constructors
Name | Description |
this
(shaders, depthTest)
|
Initialize a new Material.
|
this
(shaders, texture, frontFace, cullMode, depthTest)
|
Initialize a new textured Material.
|
this
(name, shaders, frontFace, cullMode, depthTest)
|
Initialize a new named Material.
|
this
(name, shaders, texture, frontFace, cullMode, depthTest)
|
Initialize a new named and textured Material.
|
Properties
Name | Type | Description |
cullMode [get]
|
CullMode | Type of face culling to use during graphic pipeline rasterization.
|
depthTest [get]
|
bool | Whether to perform the depth test. If true , assumes the render target has a depth buffer attachment.
|
dirtied [get]
|
const(MaterialDirtied) | The properties of this Material that have changed.
|
dirty [get]
|
bool | Whether this Material has changed and requires reprocessing into the graphics pipeline.
|
frontFace [get]
|
FrontFace | Specifies the vertex order for faces to be considered front-facing.
|
initialized [get]
|
bool | Whether this Shader has been successfully initialized.
|
texture [get]
|
Texture | Whether this Material is textured.
|
textured [get]
|
bool | Whether this Material is textured.
|
Methods
Name | Description |
initialize
(device)
|
Initialize this Material.
|
toHash
()
|
Pipelines are keyed on Material s, MeshBase.bindingDescription , MeshBase.attributeDescriptions , and MeshBase.topology
|