mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 12:16:18 +02:00
CR feedback
This commit is contained in:
parent
8c0db268e6
commit
c1bb03e9a8
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,7 @@ void GeometryCache::renderSphere(float radius, int slices, int stacks, const glm
|
||||||
|
|
||||||
Vec2Pair radiusKey(glm::vec2(radius, slices), glm::vec2(stacks, 0));
|
Vec2Pair radiusKey(glm::vec2(radius, slices), glm::vec2(stacks, 0));
|
||||||
IntPair slicesStacksKey(slices, stacks);
|
IntPair slicesStacksKey(slices, stacks);
|
||||||
Vec3Pair colorKey(glm::vec3(color.x, color.y, slices),glm::vec3(color.z, color.y, stacks));
|
Vec3Pair colorKey(glm::vec3(color.x, color.y, slices), glm::vec3(color.z, color.y, stacks));
|
||||||
|
|
||||||
int vertices = slices * (stacks - 1) + 2;
|
int vertices = slices * (stacks - 1) + 2;
|
||||||
int indices = slices * (stacks - 1) * NUM_VERTICES_PER_TRIANGULATED_QUAD;
|
int indices = slices * (stacks - 1) * NUM_VERTICES_PER_TRIANGULATED_QUAD;
|
||||||
|
@ -1478,6 +1478,7 @@ void GeometryCache::renderDashedLine(const glm::vec3& start, const glm::vec3& en
|
||||||
|
|
||||||
|
|
||||||
int GeometryCache::BatchItemDetails::population = 0;
|
int GeometryCache::BatchItemDetails::population = 0;
|
||||||
|
|
||||||
GeometryCache::BatchItemDetails::BatchItemDetails() :
|
GeometryCache::BatchItemDetails::BatchItemDetails() :
|
||||||
verticesBuffer(NULL),
|
verticesBuffer(NULL),
|
||||||
colorBuffer(NULL),
|
colorBuffer(NULL),
|
||||||
|
|
Loading…
Reference in a new issue