Last updated

API / geotoolkit3d / scene / plane / PlaneMaterial / PlaneMaterial

Class: PlaneMaterial

plane.PlaneMaterial.PlaneMaterial

Plane material. Is responsible for handling the plane image and overlay parameters and rendering.

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new PlaneMaterial(options)

new PlaneMaterial(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

MeshColorMapLambertMaterial.constructor

Methods

dispose

dispose(): void

Returns

void

Inherited from

MeshColorMapLambertMaterial.dispose


getClassName

getClassName(): string

Returns

string

Inherited from

MeshColorMapLambertMaterial.getClassName


getImageTextureDimension

getImageTextureDimension(vec2?): Vector2

Returns the dimension of the plane base image texture, if any.

Parameters

Name Type Description
Optional vec2Vector2(optional) the Vector2 to hold the dimension, to avoid creating new object.

Returns

Vector2


getOptions

getOptions(): OptionsBaseOut

Get the MeshColorMapLambertMaterial options.

Returns

OptionsBaseOut

Inherited from

MeshColorMapLambertMaterial.getOptions


getOptionsMultiColorMap

getOptionsMultiColorMap(): Required<Options>

Returns

Required<Options>

Inherited from

MeshColorMapLambertMaterial.getOptionsMultiColorMap


getOverlay

getOverlay(): Group<Node>

Return the overlay Group holding the 2D shapes

Returns

Group<Node>


getOverlayTexture

getOverlayTexture(): CanvasTexture

Returns the texture of the overlay, if any.

Returns

CanvasTexture


getOverlayTextureDimension

getOverlayTextureDimension(vec2?): Vector2

Returns the dimension of the plane overlay texture, if any.

Parameters

Name Type Description
Optional vec2Vector2(optional) the Vector2 to hold the dimension, to avoid creating new object.

Returns

Vector2


onBeforeCompile

onBeforeCompile(parameters, renderer): void

Parameters

Name Type
parametersWebGLProgramParametersWithUniforms
rendererWebGLRenderer

Returns

void

Inherited from

MeshColorMapLambertMaterial.onBeforeCompile


setOptions

setOptions(options?): PlaneMaterial

Set this material options.

Parameters

Name Type
Optional optionsOptionsBase

Returns

PlaneMaterial

Overrides

MeshColorMapLambertMaterial.setOptions


setOptionsMultiColorMap

setOptionsMultiColorMap(options): PlaneMaterial

Parameters

Name Type
optionsOptions

Returns

PlaneMaterial

Inherited from

MeshColorMapLambertMaterial.setOptionsMultiColorMap


getClassName

Static getClassName(): string

Returns

string

Inherited from

MeshColorMapLambertMaterial.getClassName