Skip to main content

sort_decal_data

Functions

compare_decals(a, b, lookup, data)number
sort_decal_data(lookup, data, offset, count)

Decals need to be drawn in a specific order to achieve correct blending, for this they need to be sorted

compare_decals(a, b, lookup, data) ⇒ number

Kind: global function

ParamType
anumber
bnumber
lookupArray.<number>
dataArray.<number>

sort_decal_data(lookup, data, offset, count)

Decals need to be drawn in a specific order to achieve correct blending, for this they need to be sorted

Kind: global function

ParamType
lookupArray.<number> | Uint8ClampedArray | Uint8Array | Uint32Array
dataArray.<number> | Float32Array
offsetnumber
countnumber