mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-26 15:13:01 +00:00
Beta (#461)
* Beta, maybe * Fixes for entityColor uniform in Iris * Handle Iris Texture input hook properly in GLSM * Iris Entity Fixes * Gbuffer progress * Wire up BlockEntity gbuffer * Move Entity gbuffer to a more appropriate place to avoid reentrancy * Wire up ENTITY_EYES and BEACOM_BEAM * Clean up unused RenderStateShard files * This seems marginally more correct? * Fix shadows from showing on sides of blocks * Remove overlay * yeet * More gl debugging * Grr, fix water textures * Add missed enable checks * Workaround for unset depth texture when using apitrace... Use a WrapOperation instead of an Inject with local capture - it wasn't working in dev w/ mixin debug set * update bs * Fix crosshair rendering with shaders * more final * Disable dynamic lights if shaders are in use * No light when in water * Add Void Particle Option + Mixin cleanup * update bs * less false --------- Co-authored-by: Darren Eberly <[email protected]> Co-authored-by: Caedis <[email protected]>
This commit is contained in:
51 files changed
+330
-400
No files matched your search
@@ -5,29 +5,19 @@ public class InputAvailability {
|
||||
|
||||
public final boolean texture;
|
||||
public final boolean lightmap;
|
||||
public final boolean overlay;
|
||||
|
||||
public InputAvailability(boolean texture, boolean lightmap, boolean overlay) {
|
||||
public InputAvailability(boolean texture, boolean lightmap) {
|
||||
this.texture = texture;
|
||||
this.lightmap = lightmap;
|
||||
this.overlay = overlay;
|
||||
}
|
||||
|
||||
public InputAvailability withoutOverlay() {
|
||||
return new InputAvailability(texture, lightmap, false);
|
||||
}
|
||||
|
||||
public static InputAvailability unpack(int packed) {
|
||||
return new InputAvailability((packed & 1) == 1, (packed & 2) == 2, (packed & 4) == 4);
|
||||
return new InputAvailability((packed & 1) == 1, (packed & 2) == 2);
|
||||
}
|
||||
|
||||
public int pack() {
|
||||
int packed = 0;
|
||||
|
||||
if (overlay) {
|
||||
packed |= 4;
|
||||
}
|
||||
|
||||
if (lightmap) {
|
||||
packed |= 2;
|
||||
}
|
||||
@@ -44,7 +34,6 @@ public class InputAvailability {
|
||||
return "InputAvailability{" +
|
||||
"texture=" + texture +
|
||||
", lightmap=" + lightmap +
|
||||
", overlay=" + overlay +
|
||||
'}';
|
||||
}
|
||||
|
||||
@@ -53,7 +42,6 @@ public class InputAvailability {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + (lightmap ? 1231 : 1237);
|
||||
result = prime * result + (overlay ? 1231 : 1237);
|
||||
result = prime * result + (texture ? 1231 : 1237);
|
||||
return result;
|
||||
}
|
||||
@@ -69,8 +57,6 @@ public class InputAvailability {
|
||||
InputAvailability other = (InputAvailability) obj;
|
||||
if (lightmap != other.lightmap)
|
||||
return false;
|
||||
if (overlay != other.overlay)
|
||||
return false;
|
||||
if (texture != other.texture)
|
||||
return false;
|
||||
return true;
|
||||
|
||||
@@ -11,12 +11,8 @@ public class StateTracker {
|
||||
public boolean albedoSampler;
|
||||
// LightmapStateShard / TextureUnit.LIGHTMAP
|
||||
public boolean lightmapSampler;
|
||||
// OverlayStateShard / TextureUnit.OVERLAY
|
||||
public boolean overlaySampler;
|
||||
|
||||
public InputAvailability getInputs() {
|
||||
return new InputAvailability(albedoSampler,
|
||||
lightmapSampler,
|
||||
overlaySampler);
|
||||
return new InputAvailability(albedoSampler, lightmapSampler);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user