In Gothic 2, there is a single 2k texture. The most common texture size is 512. Here's a breakdown of the texture sizes in Gothic 2:
To make good use of system memory, the texture arrays are clamped to 512. For reference, having the Gothic 2 texture array at 512 uses 309MB, if it were 2k it's 2.7 GB.
The clamping of the texture size means that we lose fidelity on those few textures that are larger. To address this, we need to separate out the polygons that use high resolution textures from the mesh chunks, and assign them the unique textures that would then no longer be part of the array.
[ ] Create a list of textures larger than the maximum allowed texture array resolution, and don't include the high res textures in the array.
[ ] Create a separate mesh for polygons using a high res texture.
[ ] Create a shader variant of Lit/World for sampling a regular texture rather than an array.
In Gothic 2, there is a single 2k texture. The most common texture size is 512. Here's a breakdown of the texture sizes in Gothic 2:
To make good use of system memory, the texture arrays are clamped to 512. For reference, having the Gothic 2 texture array at 512 uses 309MB, if it were 2k it's 2.7 GB.
The clamping of the texture size means that we lose fidelity on those few textures that are larger. To address this, we need to separate out the polygons that use high resolution textures from the mesh chunks, and assign them the unique textures that would then no longer be part of the array.