build_cutout_from_atlas_by_alpha
build_cutout_from_atlas_by_alpha(impostor, renderer, vertex_limit) ⇒ Float32Array
TODO For this specific use-case with octahedral impostors we can get away tracing a circular shape in general. A circle is a lot easier to quantize (as long as we make sure we place edges outside of the circle)
Kind: global function
Param | Type | Description |
---|---|---|
impostor | ImpostorDescription | |
renderer | THREE.WebGLRenderer | |
vertex_limit | number | how many vertices to use for the billboard, more vertices will provide better fit and lower area reducing overdraw at the cost of extra triangles. Prefer values between 4 and 16 |