Showing the changes to interface/src/renderer/GeometryCache.cpp (1 of 2 files). Show all
Unified · Split
| @@ -176,7 +176,7 @@ void GeometryCache::renderHalfCylinder(int slices, int stacks) { · 175 unmodified lines | |||
| 176 | float radius = 1.0f; | 176 | float radius = 1.0f; |
| 177 | 177 | ||
| 178 | for (int j = 0; j <= slices; j++) { | 178 | for (int j = 0; j <= slices; j++) { |
| 179 | float theta = PIf * j / slices; | 179 | float theta = 3 * PIf / 2 + PIf * j / slices; |
| 180 | 180 | ||
| 181 | *(vertex++) = sinf(theta) * radius; | 181 | *(vertex++) = sinf(theta) * radius; |
| 182 | *(vertex++) = y; | 182 | *(vertex++) = y; |