Backports tessellation shader support, safe zone shadow culling, and shader pack rendering directives.

This commit is contained in:
Jason Mitchell authored and Jason Mitchell committed 2026-01-30 18:10:27 -08:00
1 parent c5988d29c3
commit 969d2c3710
29 files changed
+418 -121

No files matched your search

@@ -477,11 +477,21 @@ public class ProgramSet {
AbsolutePackPath geometryPath = directory.resolve(program + ".gsh");
String geometrySource = sourceProvider.apply(geometryPath);
String tessControlSource = null;
String tessEvalSource = null;
if (programSet.pack.hasFeature(net.coderbot.iris.features.FeatureFlags.TESSELLATION_SHADERS)) {
AbsolutePackPath tessControlPath = directory.resolve(program + ".tcs");
tessControlSource = sourceProvider.apply(tessControlPath);
AbsolutePackPath tessEvalPath = directory.resolve(program + ".tes");
tessEvalSource = sourceProvider.apply(tessEvalPath);
}
AbsolutePackPath fragmentPath = directory.resolve(program + ".fsh");
String fragmentSource = sourceProvider.apply(fragmentPath);
return new ProgramSource(program, vertexSource, geometrySource, fragmentSource, programSet, properties,
defaultBlendModeOverride);
return new ProgramSource(program, vertexSource, geometrySource, tessControlSource, tessEvalSource,
fragmentSource, programSet, properties, defaultBlendModeOverride);
}
private static ComputeSource readComputeSource(AbsolutePackPath directory,