mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-19 03:49:22 +00:00
Weather instancing (#2127)
* Initial commit for weather-instancing * attempt to make the builder less ugly
This commit is contained in:
1 parent
53776684c8
commit
f2c07dea28
28 files changed
+1145
-11
No files matched your search
@@ -1468,6 +1468,7 @@ public class DeferredWorldRenderingPipeline implements WorldRenderingPipeline, R
|
||||
out[Instancing.TEMPLATE.ordinal()] = true;
|
||||
out[Instancing.CUBE.ordinal()] = AngelicaConfig.cubeInstancingEnabled();
|
||||
out[Instancing.PARTICLE.ordinal()] = true;
|
||||
out[Instancing.WEATHER.ordinal()] = true;
|
||||
return out;
|
||||
}
|
||||
|
||||
@@ -2356,11 +2357,16 @@ public class DeferredWorldRenderingPipeline implements WorldRenderingPipeline, R
|
||||
ProgramId.Particles, ProgramId.ParticlesTrans
|
||||
};
|
||||
|
||||
private static final ProgramId[] WEATHER_PROGRAM_IDS = {
|
||||
ProgramId.Weather
|
||||
};
|
||||
|
||||
private static ProgramId[] attributeProgramIds(Instancing kind) {
|
||||
return switch (kind) {
|
||||
case NONE -> ProgramId.values();
|
||||
case TEMPLATE, CUBE -> INSTANCED_PROGRAM_IDS;
|
||||
case PARTICLE -> PARTICLE_PROGRAM_IDS;
|
||||
case WEATHER -> WEATHER_PROGRAM_IDS;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user