Shader/GlslWriter: Add depth fix (from [0;1] to [-1;1]

This commit is contained in:
Jérôme Leclercq
2021-11-14 13:00:15 +01:00
parent cf8f76baa6
commit c85263c9e7
3 changed files with 10 additions and 4 deletions

View File

@@ -96,6 +96,7 @@ namespace Nz
return context.IsExtensionSupported(std::string(ext));
};
env.flipYPosition = true;
env.normalizeDepth = true;
GlslWriter writer;
writer.SetEnv(env);