Skip to content

Commit

Permalink
Fix javadoc link, add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
comp500 committed Jul 10, 2023
1 parent 8dbe4f9 commit bacdab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* Holds, manages, and provides access to the block/world related state
* needed to render quads.
*
* <p>Exception: per-block position offsets are tracked in {@link ChunkRenderInfo}
* <p>Exception: per-block position offsets are tracked in {@link TerrainRenderContext}
* so they can be applied together with chunk offsets.
*/
public class BlockRenderInfo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* only one block and its neighbors.
*/
public class SingleBlockLightDataCache extends LightDataAccess {
// Radius of 2 is required: block models may create geometry in up to a 3x3x3 region, which requires light to be
// queried from neighbours of any block in this region
private static final int NEIGHBOR_BLOCK_RADIUS = 2;
private static final int BLOCK_LENGTH = 1 + (NEIGHBOR_BLOCK_RADIUS * 2);

Expand Down

0 comments on commit bacdab8

Please sign in to comment.