Stop the glass shader importing what older versions lack
1.21.4 and 1.21.5 read every shader's imports while loading resources, and dynamictransforms.glsl only exists from 1.21.6, so resources failed to load there. The glass shader declares the transforms block itself again, with LineWidth behind a define the pipeline sets before 1.21.11. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -48,6 +48,9 @@ public final class GlassRenderer {
|
||||
.withLocation(Identifier.of("saturnclient", "pipeline/glass"))
|
||||
.withFragmentShader(Identifier.of("saturnclient", "core/glass"))
|
||||
.withSampler("Sampler1")
|
||||
// The transforms block ends with LineWidth before 1.21.11 (see glass.fsh).
|
||||
//? if <1.21.11
|
||||
//.withShaderDefine("HAS_LINE_WIDTH")
|
||||
.build();
|
||||
|
||||
private static final Identifier BLUR = Identifier.ofVanilla("post_effect/blur.json");
|
||||
|
||||
Reference in New Issue
Block a user