chunk gen now tries nodes first, also messed around a lot w rendering

This commit is contained in:
2024-09-17 20:29:10 -04:00
parent 1fc1cd23fd
commit b68707b92c
14 changed files with 709 additions and 515 deletions

View File

@@ -4,7 +4,7 @@ pub mod voxel;
pub use command::*;
use super::camera::Camera;
use crate::client::rsc::CLEAR_COLOR;
use crate::{client::rsc::CLEAR_COLOR, util::timer::Timer};
use nalgebra::Vector2;
use util::DepthTexture;
use voxel::VoxelPipeline;
@@ -114,6 +114,7 @@ impl<'a> Renderer<'a> {
let view = output
.texture
.create_view(&wgpu::TextureViewDescriptor::default());
let mut compute_pass = encoder.begin_compute_pass(&wgpu::ComputePassDescriptor {
label: None,
timestamp_writes: None,