RobertBeckebans / RBDOOM-3-BFG

Doom 3 BFG Edition source port with updated DX12 / Vulkan renderer and modern game engine features
https://www.moddb.com/mods/rbdoom-3-bfg
GNU General Public License v3.0
1.37k stars 244 forks source link

Combined Frustum for VR #878

Open RobertBeckebans opened 2 weeks ago

RobertBeckebans commented 2 weeks ago

Instead of emitting 2 views in the game code just emit one and render it twice in the render backend. However pass both eye origins to a new viewDef_t and make new projection, modelview matrices for each eye. Also use a combined projection to form a new culling frustum that can be used for both eyes so we cut the renderer frontend load in half.

11334168_10154006919426632_2185539868454578065_o