Showing the changes to interface/src/renderer/GeometryCache.cpp (1 of 93 files). Show all
Unified · Split
| @@ -296,7 +296,7 @@ void GeometryCache::renderHalfCylinder(int slices, int stacks) { · 295 unmodified lines | ||
| 296 | 296 | float y = (float)i / (stacks - 1); |
| 297 | 297 | |
| 298 | 298 | for (int j = 0; j <= slices; j++) { |
| 299 | − float theta = 3.f * PI_OVER_TWO + PI * (float)j / (float)slices; | |
| 299 | + float theta = 3.0f * PI_OVER_TWO + PI * (float)j / (float)slices; | |
| 300 | 300 | |
| 301 | 301 | //normals |
| 302 | 302 | *(vertex++) = sinf(theta); |