SplatSorter class final

Keeps a cloud's back-to-front order and the scratch the sort needs.

One per drawn cloud, since the buffers are sized to it and reused: a camera that moves every frame sorts every frame and allocates nothing.

Constructors

SplatSorter()

Properties

hashCode → int
The hash code for this object.
no setterinherited
keys → Uint32List
The quantised keys in the same order as order, ascending.
no setter
lastRange → double
How far apart the nearest and farthest splat were at the last sort, in world units. What SplatQuads measures a camera move against.
no setter
order → Uint32List
The splat indices, farthest first, after the last sort. Only the first cloud.count entries mean anything.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sort(SplatCloud cloud, Vector3 eye, {Matrix4? model}) → void
Orders cloud far to near by distance from eye, with the cloud placed in the world by model when it is given.
toString() → String
A string representation of this object.
inherited

Operators

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