Skip to content

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

Type Alias: AdditiveUniformController ​

ts
type AdditiveUniformController = UniformController<AdditiveUniforms>;

Defined in: material/additive.ts:36

Manages shader uniforms for the additive material.

This can be created using createAdditiveUniforms and attached to a material using createAdditiveMaterial.

Example ​

ts
const additiveUniforms: AdditiveUniformController = createAdditiveUniforms();

additiveUniforms.set("overrideColorEnabled", true);
additiveUniforms.set("overrideColor", { r: 255, g: 0, b: 0 });