Skip to content

FPS Camera

David Brenn edited this page Aug 10, 2023 · 1 revision

In FPS game the rendering of the forgorund (hand, weapon, etc) is done seperated form the rest. This makes it possible to lay the weapons ontop of the 3d world. Thats how the models are not stuck in the wall.

In unity this is done with two cameras. One camera will only render the stuff that on the FPSLayer. The other camera will render the rest. Make the FPS camera a child of the Main Camera and render only the depths. All the weapon and hand modles need to be on the FPSLayer

Clone this wiki locally