baked occlusion bit mapping
This commit is contained in:
+4
-4
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user