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

Method setExtensions

src/materials/EffectMaterial.js:248–260  ·  view source on GitHub ↗

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

(extensions)

Source from the content-addressed store, hash-verified

246 */
247
248 setExtensions(extensions) {
249
250 this.extensions = {};
251
252 for(const extension of extensions) {
253
254 this.extensions[extension] = true;
255
256 }
257
258 return this;
259
260 }
261
262 /**
263 * Indicates whether output encoding is enabled.

Callers 1

setShaderDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected