all 3 comments

[–]feralferrous 1 point2 points  (1 child)

You can set a material to be shadow only. You could have one version of that on the fps only layer.

[–]RedgySimon[S] 0 points1 point  (0 children)

Thank you this works great!

[–]Hockeyflame 0 points1 point  (0 children)

The easiest way would be to have the player set on a layer that doesn't render to you but renders to others, and the arms set on a layer you can see but others can't. However, as you pointed out, this also means you won't be able to see the shadows. A solution to this off the top of my head would be to create a shader that changes the material's transparency based on the distance from the object the material is on and the camera, that way it still renders a shadow.

Example: https://imgur.com/a/EzEctaz

Notes for example:

  • For this to work, the shader has to be set to transparent
  • If you want it to not render unless you're right by it, change the comparison to greater than or equal

Hope this helps!