forked from maruohon/litematica
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: InfoOverlay getting confused with the ClientWorld
feat/fix: add switchable AO Processor config,`renderAOModernEnabled` in order to disable / enable the 'new' AO Processor code; or continue using the older code from 2018 without the "Shadows" that it creates in between block layers.
- Loading branch information
1 parent
a984907
commit 526a354
Showing
20 changed files
with
1,232 additions
and
1,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
719 changes: 84 additions & 635 deletions
719
src/main/java/fi/dy/masa/litematica/render/schematic/BlockModelRendererSchematic.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/fi/dy/masa/litematica/render/schematic/ao/AOProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package fi.dy.masa.litematica.render.schematic.ao; | ||
|
||
import java.util.BitSet; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.Direction; | ||
import net.minecraft.world.BlockRenderView; | ||
|
||
import fi.dy.masa.litematica.config.Configs; | ||
|
||
public abstract class AOProcessor | ||
{ | ||
public final float[] brightness = new float[4]; | ||
public final int[] light = new int[4]; | ||
|
||
public static AOProcessor get() | ||
{ | ||
if (Configs.Visuals.RENDER_AO_MODERN_ENABLE.getBooleanValue()) | ||
{ | ||
return new AOProcessorModern(); | ||
} | ||
else | ||
{ | ||
return new AOProcessorLegacy(); | ||
} | ||
} | ||
|
||
public void apply(BlockRenderView world, BlockState state, BlockPos pos, Direction direction, float[] box, BitSet shapeState, boolean hasShade) | ||
{ | ||
} | ||
} |
Oops, something went wrong.