sort_decal_data
Functions
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
| Param | Type |
|---|---|
| a | number |
| b | number |
| lookup | Array.<number> |
| data | Array.<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
| Param | Type |
|---|---|
| lookup | Array.<number> | Uint8ClampedArray | Uint8Array | Uint32Array |
| data | Array.<number> | Float32Array |
| offset | number |
| count | number |