move shader downgrading into ShaderLoader #46

Merged
embeddedt merged 2 commits from rdh/celeritas:shader-downgrade-api into stonecutter 2026-09-24 19:28:07 -04:00
3 changed files with 8 additions and 1 deletions
Showing only changes of commit f9c5866510 - Show all commits

No files matched your search

@@ -32,7 +32,6 @@ public class ShaderLoader {
private static final Pattern OUT_PARAM = Pattern.compile("^out ", Pattern.MULTILINE);
private static final String LEGACY_PREAMBLE = String.join("\n",
"#version 120",
"#extension GL_EXT_gpu_shader4 : require",
"#define LEGACY",
"#define uint unsigned int",
"#define texture texture2D"
@@ -1,5 +1,9 @@
#version 330 core
#ifdef LEGACY
#extension GL_EXT_gpu_shader4 : require
#endif
#import <sodium:include/fog.glsl>
in vec4 v_Color;
@@ -1,5 +1,9 @@
#version 330 core
#ifdef LEGACY
#extension GL_EXT_gpu_shader4 : require
#endif
#import <sodium:include/fog.glsl>
#import <sodium:include/chunk_vertex.glsl>
#import <sodium:include/chunk_matrices.glsl>