├── .gitignore ├── Cargo.toml ├── LICENSE ├── README.md ├── preview.png ├── res ├── turkey.mtl └── turkey.obj └── src ├── camera.rs ├── camera_controller.rs ├── color.rs ├── depth_pass.rs ├── depth_pass.wgsl ├── light.rs ├── light.wgsl ├── main.rs ├── model.rs ├── rendering.rs ├── rendering ├── gpu_resources.rs ├── render_utils.rs ├── vertex_desc.rs └── vertex_instance.rs ├── shader.wgsl ├── texture.rs ├── voxel_tools.rs └── voxel_tools ├── chunk.rs ├── chunks.rs ├── direction.rs ├── mesh_builder.rs ├── quad.rs ├── rendering.rs ├── rendering ├── voxel.wgsl ├── voxel_pipeline.rs ├── voxel_rendering.rs └── voxel_vertex.rs └── voxel.rs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/README.md -------------------------------------------------------------------------------- /preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/preview.png -------------------------------------------------------------------------------- /res/turkey.mtl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/res/turkey.mtl -------------------------------------------------------------------------------- /res/turkey.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/res/turkey.obj -------------------------------------------------------------------------------- /src/camera.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/camera.rs -------------------------------------------------------------------------------- /src/camera_controller.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/camera_controller.rs -------------------------------------------------------------------------------- /src/color.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/color.rs -------------------------------------------------------------------------------- /src/depth_pass.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/depth_pass.rs -------------------------------------------------------------------------------- /src/depth_pass.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/depth_pass.wgsl -------------------------------------------------------------------------------- /src/light.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/light.rs -------------------------------------------------------------------------------- /src/light.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/light.wgsl -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/model.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/model.rs -------------------------------------------------------------------------------- /src/rendering.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/rendering.rs -------------------------------------------------------------------------------- /src/rendering/gpu_resources.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/rendering/gpu_resources.rs -------------------------------------------------------------------------------- /src/rendering/render_utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/rendering/render_utils.rs -------------------------------------------------------------------------------- /src/rendering/vertex_desc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/rendering/vertex_desc.rs -------------------------------------------------------------------------------- /src/rendering/vertex_instance.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/rendering/vertex_instance.rs -------------------------------------------------------------------------------- /src/shader.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/shader.wgsl -------------------------------------------------------------------------------- /src/texture.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/texture.rs -------------------------------------------------------------------------------- /src/voxel_tools.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools.rs -------------------------------------------------------------------------------- /src/voxel_tools/chunk.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/chunk.rs -------------------------------------------------------------------------------- /src/voxel_tools/chunks.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/chunks.rs -------------------------------------------------------------------------------- /src/voxel_tools/direction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/direction.rs -------------------------------------------------------------------------------- /src/voxel_tools/mesh_builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/mesh_builder.rs -------------------------------------------------------------------------------- /src/voxel_tools/quad.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/quad.rs -------------------------------------------------------------------------------- /src/voxel_tools/rendering.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/rendering.rs -------------------------------------------------------------------------------- /src/voxel_tools/rendering/voxel.wgsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/rendering/voxel.wgsl -------------------------------------------------------------------------------- /src/voxel_tools/rendering/voxel_pipeline.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/rendering/voxel_pipeline.rs -------------------------------------------------------------------------------- /src/voxel_tools/rendering/voxel_rendering.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/rendering/voxel_rendering.rs -------------------------------------------------------------------------------- /src/voxel_tools/rendering/voxel_vertex.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/rendering/voxel_vertex.rs -------------------------------------------------------------------------------- /src/voxel_tools/voxel.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TanTanDev/first_voxel_engine/HEAD/src/voxel_tools/voxel.rs --------------------------------------------------------------------------------