MaterialEffectClass
MaterialEffectClass<
S> =MaterialEffect&EffectValues<S> &EffectConstants<S>
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:677
Type for a MaterialEffect class created by the factory. Instances have typed properties matching the schema.
Type Parameters
Section titled “Type Parameters”S extends EffectSchema
new MaterialEffectClass():
MaterialEffect&EffectValues<S> &EffectConstants<S>
Type for a MaterialEffect class created by the factory. Instances have typed properties matching the schema.
Returns
Section titled “Returns”MaterialEffect & EffectValues<S> & EffectConstants<S>
Properties
Section titled “Properties”_constantFactories
Section titled “_constantFactories”
readonly_constantFactories:Record<string, () =>unknown>
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:687
_fieldKeys
Section titled “_fieldKeys”
readonly_fieldKeys:Readonly<Record<string, readonlystring[]>>
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:684
_fieldMap
Section titled “_fieldMap”
readonly_fieldMap:ReadonlyMap<string,EffectField>
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:685
_fields
Section titled “_fields”
readonly_fields:EffectField[]
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:683
_initialized
Section titled “_initialized”
readonly_initialized:boolean
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:689
_nextId
Section titled “_nextId”_nextId:
number
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:690
readonly_node: (context) =>Node<"vec4">
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:688
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”Node <"vec4">
_totalFloats
Section titled “_totalFloats”
readonly_totalFloats:number
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:686
channelNode
Section titled “channelNode”
readonlychannelNode: ((channelName,context) =>Node) |null
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:682
effectName
Section titled “effectName”
readonlyeffectName:string
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:679
effectSchema
Section titled “effectSchema”
readonlyeffectSchema:S
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:680
provides
Section titled “provides”
readonlyprovides: readonlyChannelName[]
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:681
Methods
Section titled “Methods”_initialize()
Section titled “_initialize()”_initialize():
void
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:691
Returns
Section titled “Returns”void
buildNode()
Section titled “buildNode()”buildNode(
context):Node<"vec4">
Defined in: packages/three-flatland/src/materials/MaterialEffect.ts:692
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”Node <"vec4">