Skip to content

Class: VolumeProjectionMaterial

Defined in: src/materials/VolumeProjectionMaterial.ts:30

Shader material that samples a 3D volume texture at each vertex and maps it through a 1D colormap texture.

Requires WebGL2 (GLSL3 + sampler3D).

Extends

  • ShaderMaterial

Constructors

Constructor

ts
new VolumeProjectionMaterial(options): VolumeProjectionMaterial;

Defined in: src/materials/VolumeProjectionMaterial.ts:31

Parameters

options

VolumeProjectionMaterialOptions

Returns

VolumeProjectionMaterial

Overrides

ts
THREE.ShaderMaterial.constructor

Accessors

intensityRange

Set Signature

ts
set intensityRange(range): void;

Defined in: src/materials/VolumeProjectionMaterial.ts:76

Parameters
range

[number, number]

Returns

void


threshold

Set Signature

ts
set threshold(range): void;

Defined in: src/materials/VolumeProjectionMaterial.ts:80

Parameters
range

[number, number]

Returns

void


overlayOpacity

Set Signature

ts
set overlayOpacity(opacity): void;

Defined in: src/materials/VolumeProjectionMaterial.ts:84

Parameters
opacity

number

Returns

void


baseColor

Set Signature

ts
set baseColor(color): void;

Defined in: src/materials/VolumeProjectionMaterial.ts:88

Parameters
color

ColorRepresentation

Returns

void


colormap

Set Signature

ts
set colormap(texture): void;

Defined in: src/materials/VolumeProjectionMaterial.ts:93

Parameters
texture

Texture

Returns

void

Methods

setVolumeTexture()

ts
setVolumeTexture(volumeTexture): void;

Defined in: src/materials/VolumeProjectionMaterial.ts:97

Parameters

volumeTexture

VolumeTexture3D

Returns

void


setWorldToIJK()

ts
setWorldToIJK(matrix): void;

Defined in: src/materials/VolumeProjectionMaterial.ts:102

Parameters

matrix

Matrix4

Returns

void

Released under the MIT License.