GPU Particles
self:get_visibility_aabb
ClientRetrieves the box outside of which particles are culled
Syntax
local position, size = self:get_visibility_aabb()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | position | Corner of the box as {x, y, z} |
vector3 | size | Size of the box as {x, y, z} |
Examples
local entity = particle.gpu.create()
local position, size = entity:get_visibility_aabb()
core.engine.print("info", util.table.unpack(position))
core.engine.print("info", util.table.unpack(size))