mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-16 10:45:09 +00:00
Backports tessellation shader support, safe zone shadow culling, and shader pack rendering directives.
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user