BUG: TransformControls + material + transparent:true = 😞

Bug found.

If you attach the THREE.TransformControls to an object that has its material set to transparent:true, the TransformControls will incorrectly be placed BEHIND the object.

OK: var material = new THREE.MeshBasicMaterial( { map: texture,transparent:false } );

41%20PM

BUG: var material = new THREE.MeshBasicMaterial( { map: texture,transparent:true } );

00%20PM

This is because transparent objects are rendered last. You could make the gizmo’s material transparent too to overcome this.

Thank you looeee

The solution I found is to set object.renderOrder = - 1;