Skip to content

Commit

Permalink
Added assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyliann committed Oct 20, 2022
1 parent 4e83b96 commit 4d99546
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/target
/assets
.idea

2 changes: 1 addition & 1 deletion src/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn create_mesh(
){

let mut chunk_pos = Vec3::new(0.0, 0.0, 0.0);
let texture_handle: Handle<Image> = asset_server.load("stone.png");
let texture_handle: Handle<Image> = asset_server.load("textures/grass_side.png");

for (x, z) in (0..voxel_data::RENDER_DISTANCE *voxel_data::CHUNK_WIDTH).step_by(voxel_data::CHUNK_WIDTH)
.cartesian_product(0..voxel_data::RENDER_DISTANCE *voxel_data::CHUNK_WIDTH).step_by(voxel_data::CHUNK_WIDTH) {
Expand Down

0 comments on commit 4d99546

Please sign in to comment.