Showing the changes to interface/src/Stars.cpp (1 of 51 files). Show all
Unified · Split
| @@ -30,9 +30,8 @@ bool Stars::setResolution(unsigned k) { · 29 unmodified lines | ||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | void Stars::render(float fovY, float aspect, float nearZ, float alpha) { |
| 33 | − | |
| 34 | 33 | // determine length of screen diagonal from quadrant height and aspect ratio |
| 35 | − float quadrantHeight = nearZ * tan(angleConvert<Degrees,Radians>(fovY) * 0.5f); | |
| 34 | + float quadrantHeight = nearZ * tan(RADIANS_PER_DEGREE * fovY * 0.5f); | |
| 36 | 35 | float halfDiagonal = sqrt(quadrantHeight * quadrantHeight * (1.0f + aspect * aspect)); |
| 37 | 36 | |
| 38 | 37 | // determine fov angle in respect to the diagonal |