mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-19 03:49:22 +00:00
GLSL Downgrading (#1348)
This commit is contained in:
1 parent
dd970b4c6a
commit
41eafbd151
9 files changed
+481
-101
No files matched your search
@@ -315,6 +315,10 @@ public class ShaderPack {
|
||||
// directly. This removes one obstacle to accurate reporting of line numbers for errors,
|
||||
// though there exist many more (such as relocating all #extension directives and similar things)
|
||||
String source = builder.toString();
|
||||
|
||||
// Apply shader pack workarounds for version compatibility (before preprocessing)
|
||||
source = ShaderPackWorkarounds.apply(source);
|
||||
|
||||
source = JcppProcessor.glslPreprocessSource(source, finalEnvironmentDefines1);
|
||||
|
||||
return source;
|
||||
|
||||
Reference in new issue
Block a user