build initial 'hres' sided pyramid
| 44 | hemiindices = new GLushort[tris*3]; |
| 45 | hemiverts[heminumverts++] = vec(0.0f, 0.0f, 1.0f); //build initial 'hres' sided pyramid |
| 46 | loopi(hres) |
| 47 | { |
| 48 | float a = PI2*float(i)/hres; |
| 49 | hemiverts[heminumverts++] = vec(cosf(a), sinf(a), 0.0f); |
| 50 | } |
| 51 | loopi(hres) genface(depth, 0, i+1, 1+(i+1)%hres); |
| 52 | } |
| 53 |
no test coverage detected