Skip to content

Commit

Permalink
flares are starting from center - fix buff ovfl
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Nov 10, 2023
1 parent 6549d6f commit d7756e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geometry/BoltSceneNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ void BoltSceneNode::BoltRenderNode::render()
const float ti = theta[i];
const float fs = FlareSpread;
glBegin(GL_TRIANGLE_STRIP);
glVertex3fv(core[0]);
glVertex3f(0.0f, 0.0f, 0.0f);
glVertex3f(c * cosf(ti - fs), c * sinf(ti - fs), s);
glVertex3f(c * cosf(ti + fs), c * sinf(ti + fs), s);
glVertex3f(c * cosf(ti) * 2.0f, c * sinf(ti) * 2.0f, s * 2.0f);
Expand Down

0 comments on commit d7756e1

Please sign in to comment.