I have a 3D model of a house with some lines draw on it in teal. I'd like to reduce the opacity of lines that should not be visible to the camera because they are hidden behind parts of the roof.
Asked
Active
Viewed 69 times
0
-
Maybe this could help: https://twitter.com/garrettkjohnson/status/1422220372762501129 – M - Aug 03 '21 at 21:19
-
Have a look at this [example (webgl_postprocessing_outline)](https://threejs.org/examples/?q=outlin#webgl_postprocessing_outline). Hidden outlines are rendered with lower opacity. Maybe you can adapt the code to to work not just for outlines but edges/geometry in general. – Brakebein Aug 05 '21 at 12:03