Interface MaterialOptions

The structure of the options to pass into [[createMaterial]].

Hierarchy

  • MaterialOptions

Properties

env: Env

Environment used to evaluate dynamic technique attributes.

Usually env.

fog?: boolean

RawShaderMaterial instances need to know about the fog at instantiation in order to avoid recompiling them manually later (ThreeJS does not update fog for RawShaderMaterials).

shadowsEnabled?: boolean

Whether shadows are enabled or not, this is required because we change the material used.

skipExtraProps?: string[]

Properties to skip.

See

[[applyTechniqueToMaterial]]

technique: Technique

The shader [[Technique]] to choose.

Generated using TypeDoc