Skip to content

Commit

Permalink
Add lighting to island generator (#425)
Browse files Browse the repository at this point in the history
* Proper lighting of island world

* Cleanup
  • Loading branch information
Jonpro03 committed Feb 16, 2024
1 parent 25c882b commit d20ad96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Obsidian/WorldData/Generators/IslandGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public async Task<Chunk> GenerateChunkAsync(int cx, int cz, Chunk? chunk = null,
}
chunk.SetBlock(bx, y, bz, BlocksRegistry.Stone);
chunk.Heightmaps[ChunkData.HeightmapType.MotionBlocking].Set(bx, bz, y);
chunk.Heightmaps[ChunkData.HeightmapType.WorldSurfaceWG].Set(bx, bz, y);
}
else
{
Expand Down Expand Up @@ -133,6 +134,7 @@ public async Task<Chunk> GenerateChunkAsync(int cx, int cz, Chunk? chunk = null,
}
}

WorldLight.InitialFillSkyLight(chunk);
chunk.chunkStatus = ChunkStatus.full;
return chunk;
}
Expand Down

0 comments on commit d20ad96

Please sign in to comment.