API / geotoolkit3d / scene / ColorMapShaderMaterial / 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>
ShaderMaterial↳
ColorMapShaderMaterial
Constructors
- [new ColorMapShaderMaterial(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.scene-3.colormapshadermaterial.colormapshadermaterial.md#new colormapshadermaterial(options))
Methods
Constructors
• new ColorMapShaderMaterial(options?)
| Name | Type |
|---|---|
Optional options | Options |
ShaderMaterial.constructor
Methods
▸ dispose(): void
void
ShaderMaterial.dispose
▸ getClassName(): string
string
▸ getColormapSize(): number
Retrieve the color map size
number
current colormap size
▸ getOptions(): OptionsBaseOut
Get mesh colormap basic material options (see ColorMapShaderMaterial.setOptions for more info)
options
▸ getOptionsMultiColorMap(): Required<Options>
Required<Options>
▸ onBeforeCompile(parameters, renderer): void
| Name | Type |
|---|---|
parameters | WebGLProgramParametersWithUniforms |
renderer | WebGLRenderer |
void
ShaderMaterial.onBeforeCompile
▸ 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>
| Name | Type | Description |
|---|---|---|
options | OptionsBase | The options |
this
▸ setOptionsMultiColorMap(options): ColorMapShaderMaterial
| Name | Type |
|---|---|
options | Options |
▸ Static getClassName(): string
string