mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-21 12:52:19 +00:00
Target OpenGL 3.3 core profile (#1412)
This commit is contained in:
1 parent
cf9993fce4
commit
d7d2228a6c
151 files changed
+11747
-1673
No files matched your search
@@ -49,13 +49,6 @@ public class CenterDepthSampler {
|
||||
|
||||
try {
|
||||
String fsh = new String(IOUtils.toByteArray(Objects.requireNonNull(getClass().getResourceAsStream("/centerDepth.fsh"))), StandardCharsets.UTF_8);
|
||||
|
||||
if (GLStateManager.capabilities.OpenGL32) {
|
||||
fsh = fsh.replace("VERSIONPLACEHOLDER", "150 compatibility");
|
||||
} else {
|
||||
fsh = fsh.replace("#define IS_GL3", "");
|
||||
fsh = fsh.replace("VERSIONPLACEHOLDER", "120");
|
||||
}
|
||||
String vsh = new String(IOUtils.toByteArray(Objects.requireNonNull(getClass().getResourceAsStream("/centerDepth.vsh"))), StandardCharsets.UTF_8);
|
||||
|
||||
builder = ProgramBuilder.begin("centerDepthSmooth", vsh, null, fsh, ImmutableSet.of(0, 1, 2));
|
||||
|
||||
Reference in new issue
Block a user