baked occlusion bit mapping

This commit is contained in:
StephenAdamson
2024-12-20 00:28:28 +00:00
parent b47e6cce69
commit d78314eb51
4 changed files with 236 additions and 70 deletions
+4 -4
View File
@@ -29,7 +29,7 @@ fn setup_tilemap(commands: &mut Commands, asset_server: &Res<AssetServer>) {
for x in -50..50 {
for y in -50..50 {
for z in -5..40 {
for z in -50..150 {
let position = Vec3::new(x as f32 * TILE_SIZE, y as f32 * TILE_SIZE, -z as f32);
// Generate Perlin noise value
@@ -66,9 +66,9 @@ fn setup_tilemap(commands: &mut Commands, asset_server: &Res<AssetServer>) {
}
}
}
for x in -15..15 {
for y in -15..15 {
let position = Vec3::new(x as f32 * TILE_SIZE, y as f32 * TILE_SIZE, -39.);
for x in -50..50 {
for y in -50..50 {
let position = Vec3::new(x as f32 * TILE_SIZE, y as f32 * TILE_SIZE, -150.);
commands.spawn(TilePrefab::bedrock(position, asset_server));
}
}