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
If the given colorprovider is null then only the single color will be used.
ShaderMaterial↳
ColorMapShaderMaterial
Constructors
Methods
Constructors
• new ColorMapShaderMaterial(options?)
| Name | Type |
|---|---|
Optional options | Options |
ShaderMaterial.constructor
Methods
▸ dispose(): void
void
ShaderMaterial.dispose
▸ getClassName(): string
string
▸ 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.
| Name | Type | Description |
|---|---|---|
options | OptionsBase | The options |
this
▸ setOptionsMultiColorMap(options): ColorMapShaderMaterial
| Name | Type |
|---|---|
options | Options |
▸ Static getClassName(): string
string