[SOLVED] Disable depthTest and depthWrite on entire mesh (Fix gun clipping)

Hey @Leonidas thanks for the quick reply!

I tried to implement your suggestion, but the behaviour of the gun doesn’t change, is there something wrong with the way I did it?

var weaponLayer = new pc.Layer("weaponLayer");
app.scene.layers.insert(weaponLayer, 10);		
Gun.model.layers = [weaponLayer.id];

var layers = Camera.camera.layers;
layers.push(weaponLayer.id);
Camera.camera.layers = layers;