-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OgreNext: Fix shaders compilation on d3d12 mesa driver (WSLg) (#851)
Old GPUs and systems with incomplete GL implementations like WSLg would trigger shader compiler errors for several reasons: * because C++ saw that GL_ARB_shader_storage_buffer_object was supported but we didn't request it in the shader. * because C++ required the use of GLSL 4.30 (not supported by d3d12 as of 2023/05), even if GLSL 4.20 plus some extensions would also work fine. This was tested on both mesa 22.2.5 and 23.1.0 . --------- Signed-off-by: Silvio Traversaro <[email protected]> Signed-off-by: Silvio Traversaro <[email protected]>
- Loading branch information
1 parent
ef4abec
commit 388a766
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
8 changes: 7 additions & 1 deletion
8
ogre2/src/media/2.0/scripts/materials/Common/GLSL/GaussianBlurBase_cs.glsl
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
7 changes: 6 additions & 1 deletion
7
ogre2/src/media/2.0/scripts/materials/Terra/GLSL/TerraShadowGenerator.glsl
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