|
Blender V5.0
|
#include <draw_shader_shared.hh>
Public Member Functions | |
ObjectBounds | |
| void | sync () |
| void | sync (const Object &ob, float inflate_bounds=0.0f) |
| void | sync (const float3 ¢er, const float3 &size) |
Public Attributes | |
| float4 | bounding_corners [4] |
| float4 | bounding_sphere |
Definition at line 197 of file draw_shader_shared.hh.
|
inline |
Definition at line 182 of file draw_resource.hh.
References bounding_corners, bounding_sphere, and NAN_FLT.
Referenced by blender::draw::Manager::resource_handle().
Definition at line 228 of file draw_resource.hh.
References bounding_corners, bounding_sphere, and size().
Definition at line 195 of file draw_resource.hh.
References BKE_object_boundbox_get(), BLI_assert, bounding_corners, bounding_sphere, bounds(), blender::bounds::corners(), and NAN_FLT.
| float4 ObjectBounds::bounding_corners[4] |
Uploaded as vertex (0, 4, 3, 1) of the bbox in local space, matching XYZ axis order. Then processed by GPU and stored as (0, 4-0, 3-0, 1-0) in world space for faster culling.
Definition at line 202 of file draw_shader_shared.hh.
| float4 ObjectBounds::bounding_sphere |
Bounding sphere derived from the bounding corner. Computed on GPU.
Definition at line 204 of file draw_shader_shared.hh.