use of net.coderbot.iris.shaderpack.include.AbsolutePackPath in project Iris by IrisShaders.
the class ProgramSet method readProgramSource.
private static ProgramSource readProgramSource(AbsolutePackPath directory, Function<AbsolutePackPath, String> sourceProvider, String program, ProgramSet programSet, ShaderProperties properties, BlendModeOverride defaultBlendModeOverride) {
AbsolutePackPath vertexPath = directory.resolve(program + ".vsh");
String vertexSource = sourceProvider.apply(vertexPath);
AbsolutePackPath geometryPath = directory.resolve(program + ".gsh");
String geometrySource = sourceProvider.apply(geometryPath);
AbsolutePackPath fragmentPath = directory.resolve(program + ".fsh");
String fragmentSource = sourceProvider.apply(fragmentPath);
return new ProgramSource(program, vertexSource, geometrySource, fragmentSource, programSet, properties, defaultBlendModeOverride);
}
Aggregations