Skip to content

Commit cf2aa44

Browse files
lighting kinda
1 parent 1ae9497 commit cf2aa44

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

neoforge-main/src/main/java/dev/compactmods/crafting/compat/jei/JeiMiniaturizationCraftingCategory.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import net.minecraft.world.level.block.state.BlockState;
5454
import net.minecraft.world.phys.AABB;
5555
import net.minecraft.world.phys.Vec3;
56+
import org.joml.Vector3f;
5657
import org.lwjgl.BufferUtils;
5758
import org.joml.Matrix4f;
5859
import org.joml.Quaternionf;
@@ -383,6 +384,13 @@ private void renderRecipe(MiniaturizationRecipe recipe, GuiGraphics guiGraphics,
383384
float previewScale = (float) ((3 + Math.exp(3 - (recipeAvgDim / 5))) / explodeMulti);
384385
mx.scale(previewScale, -previewScale, previewScale);
385386

387+
Vector3f light0 = new Vector3f(0.2f, 1.0f, -0.7f);
388+
Vector3f light1 = new Vector3f(-0.2f, 1.0f, 0.7f);
389+
light0.normalize();
390+
light1.normalize();
391+
392+
RenderSystem.setShaderLights(light0, light1);
393+
386394
drawActualRecipe(recipe, mx, dims, buffers);
387395

388396
mx.popPose();
@@ -506,7 +514,7 @@ private void renderComponent(PoseStack mx, MultiBufferSource.BufferSource buffer
506514
blocks.renderSingleBlock(state1,
507515
mx,
508516
buffers,
509-
LightTexture.FULL_SKY,
517+
0xF000F0,
510518
OverlayTexture.NO_OVERLAY,
511519
data, null);
512520
} catch (Exception e) {

0 commit comments

Comments
 (0)