Class: MaterialPreviewGenerator
Extra-Helpers.MaterialPreviewGenerator
Implements
IDisposable
Constructors
constructor
• new MaterialPreviewGenerator(viewer
)
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Defined in
webgi/src/helpers/threejs/MaterialPreviewGenerator.ts:12
Properties
viewer
• viewer: ViewerApp
shapes
• shapes: Record
<string
, Mesh
<BufferGeometry
<NormalBufferAttributes
, Event
, string
>, Material
<Event
, string
> | Material
<Event
, string
>[]>>
Defined in
webgi/src/helpers/threejs/MaterialPreviewGenerator.ts:34
Methods
dispose
▸ dispose(): void
Returns
void
Implementation of
IDisposable.dispose
Defined in
webgi/src/helpers/threejs/MaterialPreviewGenerator.ts:27
generate
▸ generate(material
, shape?
): string
Parameters
Name | Type | Default value |
---|---|---|
material | IMaterial <any > | undefined |
shape | string | 'sphere' |
Returns
string