Skip to content

Commit

Permalink
Sky's edge
Browse files Browse the repository at this point in the history
- Fix darkness when collecting light sections from high in the air
- Add dummy data layer impl to return a constant
- Empty sky section returns 15
- Empty block section returns 0
- Copy vanilla's logic for determining which data layer to use for a
  given position's sky light value
- While I'm at it, retrieve light section storage via an accessor to
  avoid allocating SectionPos objects
- Improve lut debug view
  • Loading branch information
Jozufozu committed Nov 15, 2024
1 parent ac54424 commit 6431a84
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 115 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dev.engine_room.flywheel.backend;

import org.jetbrains.annotations.Nullable;

import net.minecraft.world.level.chunk.DataLayer;

public interface SkyLightSectionStorageExtension {
@Nullable DataLayer flywheel$skyDataLayer(long section);
}
Loading

0 comments on commit 6431a84

Please sign in to comment.