Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 1 file). Show all
Unified · Split
| @@ -482,8 +482,10 @@ void GeometryCache::buildShapes() { · 481 unmodified lines | ||
| 482 | 482 | using namespace geometry; |
| 483 | 483 | auto vertexBuffer = std::make_shared<gpu::Buffer>(); |
| 484 | 484 | auto indexBuffer = std::make_shared<gpu::Buffer>(); |
| 485 | − // Cube | |
| 485 | + // Cube | |
| 486 | 486 | setupFlatShape(_shapes[Cube], geometry::cube(), _shapeVertices, _shapeIndices); |
| 487 | + //Quad renders as flat Cube | |
| 488 | + setupFlatShape(_shapes[Quad], geometry::cube(), _shapeVertices, _shapeIndices); | |
| 487 | 489 | // Tetrahedron |
| 488 | 490 | setupFlatShape(_shapes[Tetrahedron], geometry::tetrahedron(), _shapeVertices, _shapeIndices); |
| 489 | 491 | // Icosahedron |
| @@ -524,12 +526,10 @@ void GeometryCache::buildShapes() { · 34 unmodified lines | ||
| 524 | 526 | extrudePolygon<64>(_shapes[Cylinder], _shapeVertices, _shapeIndices); |
| 525 | 527 | //Cone, |
| 526 | 528 | extrudePolygon<64>(_shapes[Cone], _shapeVertices, _shapeIndices, true); |
| 527 | − //Circle | |
| 528 | − drawCircle(_shapes[Circle], _shapeVertices, _shapeIndices); | |
| 529 | + // Circle renders as flat Cylinder | |
| 530 | + extrudePolygon<64>(_shapes[Circle], _shapeVertices, _shapeIndices); | |
| 529 | 531 | // Not implemented yet: |
| 530 | − //Quad, | |
| 531 | − //Torus, | |
| 532 | − | |
| 532 | + //Torus, | |
| 533 | 533 | } |
| 534 | 534 | |
| 535 | 535 | const GeometryCache::ShapeData * GeometryCache::getShapeData(const Shape shape) const { |