Skip to content
Last updated

API / geotoolkit3d / scene / MeshColorMapLambertMaterial / MeshColorMapLambertMaterial

Class: MeshColorMapLambertMaterial

scene.MeshColorMapLambertMaterial.MeshColorMapLambertMaterial

A material similar to THREE.MeshLambertMaterial, implements Lambertian reflectance and colormap logic through a texture.<br> <br> This material requires the associated THREE.BufferGeometry to have a float attribute named upon ShaderUtil.COLORMAPVALUES_ATTRIBUTE_NAME value.<br> This float value (per vertex) will be used to retrieve a color in the given colorprovider (converted to a colormap texture).<br> The resulting color will be multiplied by the optional given static color (defaults to white unless explicitly set).<br> Lighting will be applied to this color using the same algorithm that THREE.LambertMeshMaterial.<br> <br> If the given colorprovider is null then only the single color will be used (lighting still applies).<br> <br>

Hierarchy

Table of contents

Constructors
  • [new MeshColorMapLambertMaterial(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.scene-3.meshcolormaplambertmaterial.meshcolormaplambertmaterial.md#new meshcolormaplambertmaterial(options))
Methods

Contents

Constructors

new MeshColorMapLambertMaterial(options)

• new MeshColorMapLambertMaterial(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

ColorMapShaderMaterial.constructor

Methods

dispose

▸ dispose(): void

Returns

void

Inherited from

ColorMapShaderMaterial.dispose


getClassName

▸ getClassName(): string

Returns

string

Inherited from

ColorMapShaderMaterial.getClassName


getColormapSize

▸ getColormapSize(): number

Retrieve the color map size

Returns

number

current colormap size

Inherited from

ColorMapShaderMaterial.getColormapSize


getOptions

▸ getOptions(): OptionsBaseOut

Get the MeshColorMapLambertMaterial options.

Returns

OptionsBaseOut

Overrides

ColorMapShaderMaterial.getOptions


getOptionsMultiColorMap

▸ getOptionsMultiColorMap(): Required<Options&gt;

Returns

Required<Options&gt;

Inherited from

ColorMapShaderMaterial.getOptionsMultiColorMap


onBeforeCompile

▸ onBeforeCompile(parameters, renderer): void

Parameters

Name Type
parametersWebGLProgramParametersWithUniforms
rendererWebGLRenderer

Returns

void

Inherited from

ColorMapShaderMaterial.onBeforeCompile


setOptions

▸ setOptions(options): MeshColorMapLambertMaterial

Set the MeshColorMapLambertMaterial options.

Parameters

Name Type
optionsOptionsBase

Returns

MeshColorMapLambertMaterial

Overrides

ColorMapShaderMaterial.setOptions


setOptionsMultiColorMap

▸ setOptionsMultiColorMap(options): MeshColorMapLambertMaterial

Parameters

Name Type
optionsOptions

Returns

MeshColorMapLambertMaterial

Inherited from

ColorMapShaderMaterial.setOptionsMultiColorMap


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

ColorMapShaderMaterial.getClassName