Skip to main content

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

assign_cluster(tile_texture_data_offset, bvh, lookup_address_offset, lookup_data, cluster_data, source_data)number

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

ParamTypeDescription
tile_texture_data_offsetnumber
bvhBinaryUint32BVH
lookup_address_offsetnumber
lookup_dataArray.<number> | ArrayLike.<number> | Uint8ClampedArray | Uint8Array | Uint16Array | Uint32Array
cluster_dataArray.<number> | ArrayLike.<number> | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array
source_dataArray.<number> | ArrayLike.<number> | Float32ArrayLight/Decal source information is stored in here, such as position, color etc.

assign_cluster~light_descriptor : number

Kind: inner constant of assign_cluster