Is it posible in Three.js to have a mesh always rendered on top of the scene, even if it\'s position is behind all objects? I\'m implementing a lasso selection with a mesh a
If you want render only one mesh on front you can also manage by setting depthTest
for the material of that object to false
:
var onTopMaterial = new THREE.MeshStandardMaterial({
color: 'red',
depthTest: false
});
mesh.material = onTopMaterial;
Check a demonstation in this fiddle
Note: Make sure you have renderer.sortObjects
set to the default true
value.