Closed bennlich closed 5 years ago
Here's a gist based on the basic cube example where I try to make the red cube transparent (to no avail):
https://gist.github.com/bennlich/6c8282c9429f3342eb645a4575b6b536
I think I just don't understand how to use alphaMap
s properly. Using the transparent
and opacity
properties seems to work as expected. E.g.:
var redMaterial = new THREE.MeshPhongMaterial({
color: 0x660000,
transparent: true,
opacity: 0.5
});
@bennlich yes, THREE requires transparent: true
whenever you want to render things that aren't fully opaque. this enables it to skip depth testing behind opaque things.
I'd love an example with a transparent object :)