Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1640,7 +1640,11 @@ void GeometryCache::renderGlowLine(gpu::Batch& batch, const glm::vec3& p1, const · 1639 unmodified lines | ||
| 1640 | 1640 | #endif |
| 1641 | 1641 | |
| 1642 | 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 | 1648 | renderLine(batch, p1, p2, color, id); |
| 1645 | 1649 | return; |
| 1646 | 1650 | } |