mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-24 22:24:27 +00:00
Various Mixin-related Fixes (#890)
* Update deps * Remove dead code * Add missing `@Override` annotations * Fix generics * Add `serialVersionUID`s * Address deprecation warnings * Use `@WrapWithCondition` v2 * Misc cleanup * Use AccessTransformers if possible * Fix mixin conflicts * Add `@Mutable` annotations * Fix injection targets * Update deps
This commit is contained in:
1 parent
611bbf02c8
commit
bb5526598e
158 files changed
+252
-619
No files matched your search
-11
@@ -322,13 +322,9 @@ public class AdvancedShadowCullingFrustum extends Frustrum {
|
||||
* @return 0 if nothing is visible, 1 if everything is visible, 2 if only some corners are visible.
|
||||
*/
|
||||
private int checkCornerVisibility(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) {
|
||||
boolean inside = true;
|
||||
float outsideBoundX;
|
||||
float outsideBoundY;
|
||||
float outsideBoundZ;
|
||||
float insideBoundX;
|
||||
float insideBoundY;
|
||||
float insideBoundZ;
|
||||
|
||||
for (int i = 0; i < planeCount; ++i) {
|
||||
Vector4f plane = this.planes[i];
|
||||
@@ -338,32 +334,25 @@ public class AdvancedShadowCullingFrustum extends Frustrum {
|
||||
|
||||
if (plane.x() < 0) {
|
||||
outsideBoundX = minX;
|
||||
insideBoundX = maxX;
|
||||
} else {
|
||||
outsideBoundX = maxX;
|
||||
insideBoundX = minX;
|
||||
}
|
||||
|
||||
if (plane.y() < 0) {
|
||||
outsideBoundY = minY;
|
||||
insideBoundY = maxY;
|
||||
} else {
|
||||
outsideBoundY = maxY;
|
||||
insideBoundY = minY;
|
||||
}
|
||||
|
||||
if (plane.z() < 0) {
|
||||
outsideBoundZ = minZ;
|
||||
insideBoundZ = maxZ;
|
||||
} else {
|
||||
outsideBoundZ = maxZ;
|
||||
insideBoundZ = minZ;
|
||||
}
|
||||
|
||||
if (Math.fma(plane.x(), outsideBoundX, Math.fma(plane.y(), outsideBoundY, plane.z() * outsideBoundZ)) < -plane.w()) {
|
||||
return 0;
|
||||
}
|
||||
inside &= Math.fma(plane.x(), insideBoundX, Math.fma(plane.y(), insideBoundY, plane.z() * insideBoundZ)) >= -plane.w();
|
||||
}
|
||||
|
||||
return 2;
|
||||
|
||||
Reference in new issue
Block a user