MCPcopy Create free account
hub / github.com/pmndrs/postprocessing / setUniforms

Method setUniforms

src/materials/EffectMaterial.js:228–238  ·  view source on GitHub ↗

* Sets the shader uniforms. * * @deprecated Use setShaderData instead. * @param {Map } uniforms - A collection of uniforms. * @return {EffectMaterial} This material.

(uniforms)

Source from the content-addressed store, hash-verified

226 */
227
228 setUniforms(uniforms) {
229
230 for(const entry of uniforms.entries()) {
231
232 this.uniforms[entry[0]] = entry[1];
233
234 }
235
236 return this;
237
238 }
239
240 /**
241 * Sets the required shader extensions.

Callers 2

constructorMethod · 0.95
setShaderDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected