Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace 3D texture in landscape shader by a 2D texture array
A texture array is conceptionally what should be used in this case. One advantage of this is that we don't have to generate mipmaps ourselves but can let the graphics driver take care of it. Same for selection of the mipmap level. This would even allow to choose different mipmap levels for different textures. This is a somewhat experimental change since it makes OpenGL 3.0 a hard requirement for OpenClonk. I expect that this is fine, but if this causes failures during landscape creation on common hardware/drivers we should revisit.
- Loading branch information
Showing
4 changed files
with
54 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters