Skip to main content

query_bvh_frustum_from_texture

Members

stack[undefined] : number

After performing empirical tests, stack-based depth-first traversal turns out faster than using a queue

Functions

frustum_check(data, address, planes)boolean
query_bvh_frustum_from_texture(destination, destination_offset, bvh, source_data, planes, points)number

Most of the data is in flat continuous array for cache coherence

stack[undefined] : number

After performing empirical tests, stack-based depth-first traversal turns out faster than using a queue

Kind: global variable

frustum_check(data, address, planes) ⇒ boolean

Kind: global function

ParamType
dataFloat32Array
addressnumber
planesArrayLike.<number> | Array.<number>

query_bvh_frustum_from_texture(destination, destination_offset, bvh, source_data, planes, points) ⇒ number

Most of the data is in flat continuous array for cache coherence

Kind: global function
Returns: number - number of items added to the destination, non-negative integer

ParamType
destinationArray.<number>
destination_offsetnumber
bvhBinaryUint32BVH
source_dataArray.<number> | Uint8ClampedArray
planesArray.<number> | Float32Array | Float64Array
pointsArray.<number> | Float32Array | Float64Array

query_bvh_frustum_from_texture~stack_top : number

Kind: inner constant of query_bvh_frustum_from_texture