fixed 3D Sun

This commit is contained in:
Zeno Rogue 2020-05-16 01:00:28 +02:00
parent eb296636e6
commit 71f9786607
1 changed files with 1 additions and 1 deletions

View File

@ -684,7 +684,7 @@ void geometry_information::make_star(hpcshape& sh, ld rad) {
int steps = (BADMODEL ? 8 : 64);
for(int a=0; a<steps; a++) {
ld z0 = (a-steps/2)*2.0/steps;
ld z1 = (a-steps/2-1)*2.0/steps;
ld z1 = (a-steps/2+1)*2.0/steps;
ld r0 = sqrt(1 - z0*z0) * rad;
ld r1 = sqrt(1 - z1*z1) * rad;
z0 *= rad;