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
16401640 #endif
16411641
16421642 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+ }
16441648 renderLine(batch, p1, p2, color, id);
16451649 return;
16461650 }