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
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
SplatQuadsmeasures a camera move against.no setter - order → Uint32List
-
The splat indices, farthest first, after the last sort. Only the
first
cloud.countentries 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
cloudfar to near by distance fromeye, with the cloud placed in the world bymodelwhen it is given. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited