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
If the given colorprovider is null then only the single color will be used.

Hierarchy

Table of contents

Constructors
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


getOptions

getOptions(): OptionsBaseOut

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

Returns

OptionsBaseOut

options


getOptionsMultiColorMap

getOptionsMultiColorMap(): Required<Options>

Returns

Required<Options>


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.

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