History

Successful static half cylinder backing.

Hifi Test Account committed 13 years ago

Commit 05d933b1 parent d725bcd2 files · +5 −1Browse files

Showing the changes to interface/src/renderer/GeometryCache.cpp (1 of 2 files). Show all

Unified · Split

interface/src/renderer/GeometryCache.cpp+1−1
@@ -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;