Fix unreported error: Algorithm for extracting the Bounding Sphere from an Orthographic frustum was incorrect.
There was double transformation.
This commit is contained in:
parent
a945bcc028
commit
10f7f4ec14
|
@ -486,9 +486,6 @@ static void draw_clipping_setup_from_view(void)
|
|||
float *nearpoint = bbox.vec[0];
|
||||
float *farpoint = bbox.vec[6];
|
||||
|
||||
mul_project_m4_v3(projinv, nearpoint);
|
||||
mul_project_m4_v3(projinv, farpoint);
|
||||
|
||||
/* just use median point */
|
||||
mid_v3_v3v3(bsphere->center, farpoint, nearpoint);
|
||||
bsphere->radius = len_v3v3(bsphere->center, farpoint);
|
||||
|
|
Loading…
Reference in New Issue