Gets 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.
Gets active shadow PCF option key.
Sets active shadow PCF option key, invalidating active cached bind groups if changed.
Instantiates a PBR StandardMaterial, registering defaults and allocating float parameter arrays.
PBR coefficients, texture assets, and spatial configurations.
Releases standard material resources (GPUBuffers) and unregisters entries from the VRAM tracker.
Active context.
Allocates uniform buffers and packages textures, generating a standard bind group (index 2). Triggers asynchronous load sequences for string texture paths. Reuses dummy white/normal maps if optional texture arguments are omitted.
Active context.
Optional_topology: GPUPrimitiveTopologyGeometry topology.
Optional_indexFormat: GPUIndexFormatGeometry index format.
Standard bind group 2 instance.
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.
Retrieves or compiles standard PBR pipelines matching specific primitive topology layouts.
Active context.
Target geometry topology.
Target index format.
OptionalcullMode: GPUCullModeCulling mode parameter.
Compiled render pipeline instance.
ProtectedonInvalidate cached bind group when properties change.
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.
Static ReadonlyUNIFORM_Mappings of PBR parameters to Float32Array offsets matching the WGSL MaterialUniform struct layout.
StandardMaterial represents a Physically-Based Rendering (PBR) metallic-roughness material. Manages material parameter uniform structures, linear samplers, lazy-loading sequences for texture assets, handles shadow filtering variant compilation keys, and supports double-sided material rendering.