My cursor image is transparent, located as a child of the camera.
<a-camera>
<a-image position="0 0 -1" width="0.2" height="0.2" transparent="true" src="image.png">
</a-camera>
I'm struggling to make it visible above other transparent images like the dinosaur and seeing strange artifacts:
https://i.sstatic.net/K97aI.png
When using material="depthTest: false;"
, it ends up behind other transparent images:
https://i.sstatic.net/t5H5N.png
While there's plenty of information on transparency in Three.js on StackOverflow, I couldn't find anything specific to A-Frame. I tried adjusting the renderOrder
with no success.
Any suggestions on how to resolve this issue?
Here is the relevant codepen link: