export function range ( n ) { const out = new Float32Array ( n ) ; for ( let i = 0 ; i < n ; i ++ ) { out [ i ] = i ; } return out ; } /**
 * Convert integer to float for shaders.
 */ export function float ( i ) { return i . toFixed ( 1 ) ; }