GothicVRProject / GothicVR

Fan project recreating the classic Gothic I and II experience in VR.
GNU General Public License v3.0
26 stars 2 forks source link

Split world meshes into logical pieces #295

Closed ThomasMountainborn closed 8 months ago

ThomasMountainborn commented 8 months ago

Right now, all world meshes sharing the same material are grouped into one mesh. This is not only not ideal for culling since geometry that's not visible is still sent to the GPU, it also means that a lot of lights can touch the same mesh, requiring that every mesh has to do the calculations for a lot of lights. It would be beneficial to split the meshes into pieces which are actually grouped together. A good start is just separating each loose "island" into a separate mesh.

TODOs:

image