Fix unreported error: Algorithm for extracting the Bounding Sphere from an Orthographic frustum was incorrect.

There was double transformation.
This commit is contained in:
Germano Cavalcante 2018-04-16 11:42:20 -03:00
parent a945bcc028
commit 10f7f4ec14
1 changed files with 0 additions and 3 deletions

View File

@ -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);