Documentation / @sw-file-lib/three / createOpaqueMaterial
Function: createOpaqueMaterial()
ts
function createOpaqueMaterial(uniforms?: OpaqueUniformController, materialParameters?: MeshStandardMaterialParameters): MeshStandardMaterial;Defined in: material/opaque.ts:92
Create the default opaque material used for materialIndex 0 groups.
If you want to use custom uniforms, you can create them using createOpaqueUniforms and pass them to this function.
You can override the material parameters by passing a THREE.MeshStandardMaterialParameters object as the second argument.
Parameters
| Parameter | Type |
|---|---|
uniforms? | OpaqueUniformController |
materialParameters? | MeshStandardMaterialParameters |
Returns
MeshStandardMaterial
A new THREE.MeshStandardMaterial with the specified uniforms, or a default one if not provided.