assign_cluster
Constants
- scratch_corners :
Array.<number>
|Float32Array
|Float64Array
- scratch_frustum_planes :
Array.<number>
|Float32Array
|Float64Array
Linear access data structure with parameters of each plane of the frustum 6 planes, 4 values per plane Layout: [normal.x, normal.y, normal.z, constant]
- LOOKUP_CACHE :
Uint16Array
|Uint32Array
Cache used to identify duplicate cells. Helps reduce memory usage and just point to equivalent existing cells instead of allocating new ones.
- scratch_light_nodes :
Array.<number>
Functions
scratch_corners : Array.<number>
| Float32Array
| Float64Array
Kind: global constant
scratch_frustum_planes : Array.<number>
| Float32Array
| Float64Array
Linear access data structure with parameters of each plane of the frustum 6 planes, 4 values per plane Layout: [normal.x, normal.y, normal.z, constant]
Kind: global constant
LOOKUP_CACHE : Uint16Array
| Uint32Array
Cache used to identify duplicate cells. Helps reduce memory usage and just point to equivalent existing cells instead of allocating new ones.
Kind: global constant
scratch_light_nodes : Array.<number>
Kind: global constant
assign_cluster(tile_texture_data_offset, bvh, lookup_address_offset, lookup_data, cluster_data, source_data) ⇒ number
Kind: global function
Param | Type | Description |
---|---|---|
tile_texture_data_offset | number | |
bvh | BinaryUint32BVH | |
lookup_address_offset | number | |
lookup_data | Array.<number> | ArrayLike.<number> | Uint8ClampedArray | Uint8Array | Uint16Array | Uint32Array | |
cluster_data | Array.<number> | ArrayLike.<number> | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | |
source_data | Array.<number> | ArrayLike.<number> | Float32Array | Light/Decal source information is stored in here, such as position, color etc. |
assign_cluster~light_descriptor : number
Kind: inner constant of assign_cluster