LineMaterial is a ShaderMaterial which has a uniform opacity that is passed to the fragment shader. However when setting opacity on the LineMaterial it is not passed to the fragment shader. A workaround is to set the opacity uniform directly. So instead of setting material.opacity = 0.5, I did material.uniforms.opacity = 0.5. Hope this works for others aswell.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to make a Line2 fading out shader | 37 | 3791 | July 22, 2022 | |
| Line opacity rendering issue with transparent spheres | 7 | 5130 | May 3, 2017 | |
| Version 117 stops fat-lines from rendering | 6 | 1872 | June 2, 2020 | |
| Change Line width LineBasicMaterial | 3 | 3329 | July 4, 2022 | |
| Fat lines example issue | 0 | 289 | June 16, 2024 |