AbstractGets the ambient occlusion shadow intensity multiplier.
Sets the ambient occlusion shadow intensity multiplier and marks the material parameters as dirty.
Gets the culling mode settings.
Gets the depth check comparison function.
Sets the depth check comparison function.
Gets whether depth buffer updates are enabled.
Sets whether depth buffer updates are enabled.
Gets the double-sided rendering state.
Sets the double-sided rendering state, adjusting internal cull modes accordingly.
Gets the emissive intensity multiplier.
Sets the emissive intensity multiplier and marks the material parameters as dirty.
Gets the microfacet metallic factor.
Sets the microfacet metallic factor and marks the material parameters as dirty.
Gets the normal tangent scale.
Sets the normal tangent scale and marks the material parameters as dirty.
Gets the opacity component of the albedo color.
Sets the opacity component of the albedo color, automatically enabling transparent rendering and disabling depth writing if opacity is less than 1.0.
Gets the microfacet roughness factor.
Sets the microfacet roughness factor and marks the material parameters as dirty.
Gets whether transparency blending is enabled.
Sets whether transparency blending is enabled. Automatically sets depthWriteEnabled to false if transparent is true.
Instantiates a new Material.
Material base configuration options.
AbstractdestroyAbstract method performing resource cleanup (releasing GPU buffers and removing allocations tracker entries).
Target framework context.
AbstractgetAbstract method compiling or fetching the primary GPUBindGroup (group index 2) representing PBR parameters.
Active context.
Optionaltopology: GPUPrimitiveTopologyGeometry topology.
OptionalindexFormat: GPUIndexFormatGeometry index format.
The resolved material GPUBindGroup.
Custom parameter bind group (group index 3) utilized by custom ShaderMaterials. Returns null by default for StandardMaterial.
Active context.
The resolved custom parameters bind group or null.
AbstractgetAbstract method compiling or retrieving the cached GPURenderPipeline matching specified topologies.
Active context.
Optionaltopology: GPUPrimitiveTopologyPrimitive assembly topology option. Defaults to "triangle-list".
OptionalindexFormat: GPUIndexFormatIndex element data format. Defaults to "uint16".
OptionalcullMode: GPUCullModePipeline culling override.
OptionaluseCSM: booleanThe resolved GPURenderPipeline.
ProtectedonHook called when any property changes. Subclasses override this to invalidate their specific GPU bind groups.
ProtectedresolveAsynchronously loads pending texture strings in the background and resolves them into Texture objects.
Unique material identification key.
Flag indicating if parameter properties are dirty, requiring a new bind group build.
Secondary material rendered on top of the current pass. Assign a ShaderMaterial here to layer a second render pass (e.g., outline effect) over the primary material. The next pass automatically uses the same geometry and instance matrices, drawn immediately after.
Material class type string tag used for fast runtime polymorphism checks.
Material represents the abstract shading template parent class. Defines standard interfaces for pipeline resolutions, binding parameter bind groups, and next-pass overlay layering (e.g. outline/highlight passes).