I’m currently making a fps, i had a problem that my weapon was cliping through walls, so i made another camera and i set it to render only the weapon on a different layer. It works, the weapon doesn’t clip through walls, but now i have a problem that shadows don’t interact with the weapon, because the objects are on different layers. Could someone help me fix this?
To get a better understanding of what i mean, see this. This persons solution is to duplicate every shadow casting object to the layer witch the gun is, and set the mesh filter to shadow cast only. I don’t use his solution, because i find it too messy.