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

Method setDefines

src/materials/EffectMaterial.js:207–218  ·  view source on GitHub ↗

* Sets the shader macros. * * @deprecated Use setShaderData instead. * @param {Map } defines - A collection of preprocessor macro definitions. * @return {EffectMaterial} This material.

(defines)

Source from the content-addressed store, hash-verified

205 */
206
207 setDefines(defines) {
208
209 for(const entry of defines.entries()) {
210
211 this.defines[entry[0]] = entry[1];
212
213 }
214
215 this.needsUpdate = true;
216 return this;
217
218 }
219
220 /**
221 * Sets the shader uniforms.

Callers 2

constructorMethod · 0.95
setShaderDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected