History

clean up avatar rendering and ring gizmo normals

SamGondelman committed 7 years ago

Commit c985fc71 parent 58146064 files · +9 −72Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 4 files). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+3−3
@@ -1029,7 +1029,7 @@ void GeometryCache::updateVertices(int id, const QVector<glm::vec2>& points, con · 1028 unmodified lines
10291029 int* colorData = new int[details.vertices];
10301030 int* colorDataAt = colorData;
10311031
1032− const glm::vec3 NORMAL(0.0f, 0.0f, 1.0f);
1032+ const glm::vec3 NORMAL(0.0f, 1.0f, 0.0f);
10331033 auto pointCount = points.size();
10341034 auto colorCount = colors.size();
10351035 int compactColor = 0;
@@ -1107,7 +1107,7 @@ void GeometryCache::updateVertices(int id, const QVector<glm::vec3>& points, con · 71 unmodified lines
11071107 int* colorData = new int[details.vertices];
11081108 int* colorDataAt = colorData;
11091109
1110− const glm::vec3 NORMAL(0.0f, 0.0f, 1.0f);
1110+ const glm::vec3 NORMAL(0.0f, 1.0f, 0.0f);
11111111 auto pointCount = points.size();
11121112 auto colorCount = colors.size();
11131113 for (auto i = 0; i < pointCount; i++) {
@@ -1195,7 +1195,7 @@ void GeometryCache::updateVertices(int id, const QVector<glm::vec3>& points, con · 81 unmodified lines
11951195 int* colorData = new int[details.vertices];
11961196 int* colorDataAt = colorData;
11971197
1198− const glm::vec3 NORMAL(0.0f, 0.0f, 1.0f);
1198+ const glm::vec3 NORMAL(0.0f, 1.0f, 0.0f);
11991199 for (int i = 0; i < points.size(); i++) {
12001200 glm::vec3 point = points[i];
12011201 glm::vec2 texCoord = texCoords[i];