* Sets the shader macros. * * @deprecated Use setShaderData instead. * @param {Map } defines - A collection of preprocessor macro definitions. * @return {EffectMaterial} This material.
(defines)
| 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. |
no outgoing calls
no test coverage detected