DRW: View: Allow disabling view test by setting bound sphere radius to -1
This commit is contained in:
@@ -38,7 +38,11 @@ void main()
|
||||
Sphere inscribed_sphere = Sphere(bounds.bounding_sphere.xyz, bounds._inner_sphere_radius);
|
||||
|
||||
for (drw_view_id = 0; drw_view_id < view_len; drw_view_id++) {
|
||||
if (intersect_view(inscribed_sphere) == true) {
|
||||
if (drw_view_culling.bound_sphere.w == -1.0) {
|
||||
/* View disabled. */
|
||||
mask_visibility_bit(drw_view_id);
|
||||
}
|
||||
else if (intersect_view(inscribed_sphere) == true) {
|
||||
/* Visible. */
|
||||
}
|
||||
else if (intersect_view(bounding_sphere) == false) {
|
||||
|
||||
Reference in New Issue
Block a user