Skip to content

Documentation / @sw-file-lib/three / createAdditiveMaterial

Function: createAdditiveMaterial() ​

ts
function createAdditiveMaterial(uniforms?: 
  | AdditiveUniformController
  | null, materialParameters?: MeshBasicMaterialParameters): MeshBasicMaterial;

Defined in: material/additive.ts:80

Create an additive material used for materialIndex 2 groups.

If you want to use custom uniforms, you can create them using createAdditiveUniforms and pass them to this function.

You can override the material parameters by passing a THREE.MeshBasicMaterialParameters object as the second argument.

Parameters ​

ParameterType
uniforms?| AdditiveUniformController | null
materialParameters?MeshBasicMaterialParameters

Returns ​

MeshBasicMaterial

A new THREE.MeshBasicMaterial with the specified uniforms, or a default one if not provided.