跳到主要内容

flywave-mapview.materialoptions

Home > @flywave/flywave-mapview > MaterialOptions

MaterialOptions interface

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

Signature:

export interface MaterialOptions 

Properties

Property

Modifiers

Type

Description

env

Env

Environment used to evaluate dynamic technique attributes.

Usually MapView.env.

fog?

boolean

(Optional) 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

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

skipExtraProps?

string[]

(Optional) Properties to skip.

technique

Technique

The shader [[Technique]] to choose.