Skip to content

EffectConstants

EffectConstants<S> = { [K in ConstantKeys<S>]: S[K] extends () => infer R ? R : never }

Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:52

Read-only constants from factory function fields. The reference is frozen at construction time and cannot be reassigned, but the object’s internals are freely mutable and mutations take effect immediately (e.g. this.forwardPlus.resize(w, h) works live — no remove/re-add needed).

S extends EffectSchema