History

fix depth buffer issue that was messing with drawInFront, plus some small fixes to line3ds

SamGondelman committed 9 years ago

Commit 81634301 parent 0f163a63 files · +12 −8Browse files

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

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+5−1
@@ -1640,7 +1640,11 @@ void GeometryCache::renderGlowLine(gpu::Batch& batch, const glm::vec3& p1, const · 1639 unmodified lines
1640#endif1640#endif
1641 1641
1642 if (glowIntensity <= 0) {1642 if (glowIntensity <= 0) {
1643 bindSimpleProgram(batch, false, false, false, true, false);1643 if (color.a >= 1.0) {
1644 bindSimpleProgram(batch, false, false, false, true, true);
1645 } else {
1646 bindSimpleProgram(batch, false, true, false, true, true);
1647 }
1644 renderLine(batch, p1, p2, color, id);1648 renderLine(batch, p1, p2, color, id);
1645 return;1649 return;
1646 }1650 }