Blender V4.3
ObjectBounds Struct Reference

#include <draw_shader_shared.hh>

Public Attributes

float4 bounding_corners [4]
 
float4 bounding_sphere
 

Detailed Description

Definition at line 207 of file draw_shader_shared.hh.

Member Data Documentation

◆ bounding_corners

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 212 of file draw_shader_shared.hh.

◆ bounding_sphere

float4 ObjectBounds::bounding_sphere

Bounding sphere derived from the bounding corner. Computed on GPU.

Definition at line 214 of file draw_shader_shared.hh.


The documentation for this struct was generated from the following file: