SplatSource class

Manages the GPU texture representation of Gaussian splat data.

This class handles the conversion of raw splat data into a WebGL texture optimized for rendering. Each splat is packed into 5 consecutive RGBA pixels in the texture, containing position, rotation, scale, color, and spherical harmonics coefficients.

Constructors

SplatSource.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splatCount int
Total number of splats currently stored in the texture.
getter/setter pair
texHeight int
Current height of the texture in pixels, calculated based on splat count.
getter/setter pair
texture ↔ WebGLTexture?
The WebGL texture containing the packed splat data.
getter/setter pair
texWidth int
Fixed width of the texture in pixels.
getter/setter pair

Methods

dispose(RenderingContext gl) → void
Releases all GPU resources and resets the state.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
upload(RenderingContext gl, Uint8List buffer) → void
Uploads splat data from a binary buffer to a WebGL texture.

Operators

operator ==(Object other) bool
The equality operator.
inherited