Skip to content

Commit

Permalink
Fix rebase errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Oct 2, 2022
1 parent bf8e3c9 commit eef4b36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
11 changes: 4 additions & 7 deletions chunky/src/java/se/llbit/chunky/model/AABBModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,10 @@ public boolean intersect(Ray ray, Scene scene) {
}
}

if (side != -1) {
boolean hit = intersectFace(ray, scene, textures[i][side],
mapping != null ? mapping[i][side] : null,
tintedFacesBox != null ? tintedFacesBox[side] : Tint.NONE);
hitTexture = hit ? textures[i][side] : hitTexture;
hitSide = hit ? side : hitSide;
ray.t = hit ? ray.tNext: ray.t;
if (hit) {
ray.t = ray.tNext;
hitTexture = textures[i][side];
hitSide = side;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions chunky/src/java/se/llbit/chunky/model/QuadModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import se.llbit.chunky.resources.pbr.NormalMap;
import se.llbit.math.Quad;
import se.llbit.math.Ray;
import se.llbit.math.Vector3;

import java.util.Random;

Expand Down
2 changes: 1 addition & 1 deletion chunky/src/java/se/llbit/chunky/resources/Texture.java
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ public float[] getColor(double u, double v) {
* @return color
*/
public final float[] getColor(int x, int y) {
if(usesAverageColor)
if(usesAverageColor) {
return avgColorFlat;
}
float[] result = new float[4];
Expand Down

0 comments on commit eef4b36

Please sign in to comment.