Skip to content
Last updated

API / geotoolkit3d / scene / ColorMapShaderMaterial / ColorMapShaderMaterial

Class: ColorMapShaderMaterial

scene.ColorMapShaderMaterial.ColorMapShaderMaterial

A material similar to THREE.ShaderMaterial, rendered with custom shaders and supports color maps through a texture <br> If the given colorprovider is null then only the single color will be used.<br> <br>

Hierarchy

Table of contents

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

Contents

Constructors

new ColorMapShaderMaterial(options)

• new ColorMapShaderMaterial(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

ShaderMaterial.constructor

Methods

dispose

▸ dispose(): void

Returns

void

Overrides

ShaderMaterial.dispose


getClassName

▸ getClassName(): string

Returns

string


getColormapSize

▸ getColormapSize(): number

Retrieve the color map size

Returns

number

current colormap size


getOptions

▸ getOptions(): OptionsBaseOut

Get mesh colormap basic material options (see ColorMapShaderMaterial.setOptions for more info)

Returns

OptionsBaseOut

options


getOptionsMultiColorMap

▸ getOptionsMultiColorMap(): Required<Options&gt;

Returns

Required<Options&gt;


onBeforeCompile

▸ onBeforeCompile(parameters, renderer): void

Parameters

Name Type
parametersWebGLProgramParametersWithUniforms
rendererWebGLRenderer

Returns

void

Overrides

ShaderMaterial.onBeforeCompile


setOptions

▸ setOptions(options): ColorMapShaderMaterial

Set options, the given json will be merged with the object's state so that only the given options will be changed.<br>

Parameters

Name Type Description
optionsOptionsBaseThe options

Returns

ColorMapShaderMaterial

this


setOptionsMultiColorMap

▸ setOptionsMultiColorMap(options): ColorMapShaderMaterial

Parameters

Name Type
optionsOptions

Returns

ColorMapShaderMaterial


getClassName

▸ Static getClassName(): string

Returns

string