Skip to content

VolumeRenderable

Extends RenderableObject and inherits all public properties and methods.

Constructor

ts
new VolumeRenderable(__namedParameters?): VolumeRenderable;
ParameterType
__namedParametersVolumeRenderableProps

Properties

voxelScale

ts
voxelScale: vec3;

Accessors

type string overrides

ts
get type(): string;

Methods

updateVolumeWithChunk() void

ts
updateVolumeWithChunk(chunk): void;
ParameterType
chunkChunk

clearLoadedChannels() void

ts
clearLoadedChannels(): void;

reset() void

ts
reset(): void;

getUniforms() Record<string, number[] | number> overrides

Get uniforms for shader program. Override in derived classes that need custom uniforms.

ts
getUniforms(): Record<string, number[] | number>;

setChannelProps() void

ts
setChannelProps(channels): void;
ParameterType
channelsChannelProps[]

setChannelProperty() void

ts
setChannelProperty<K>(
   channelIndex, 
   property, 
   value): void;

Type Parameters

Type Parameter
K extends keyof ChannelProps
ParameterType
channelIndexnumber
propertyK
valueRequired<ChannelProps>[K]

Released under the MIT License