Removed debug and draw objects from both sides by removing culling

This commit is contained in:
Verox001 2025-05-05 21:45:32 +02:00
parent 7257b0a648
commit 5a680e73f0
3 changed files with 1 additions and 4 deletions

View File

@ -64,11 +64,9 @@ impl<'a> ApplicationHandler for StateApplication<'a> {
self.state.as_mut().unwrap().render().unwrap();
}
WindowEvent::KeyboardInput { event, .. } => {
println!("Keyboard input event: {:?}", event);
if let Some(state) = self.state.as_mut() {
if let Some(input_fn) = self.input_fn.as_mut() {
let key_event = from_winit_input(&event, self.modifiers);
println!("Keyboard input: {:?}", key_event);
input_fn(state, &key_event);
}
}

View File

@ -64,7 +64,6 @@ pub struct InputEvent {
}
pub fn from_winit_input(event: &KeyEvent, modifiers: Modifiers) -> InputEvent {
println!("Converting Winit key event: {:?}", event);
InputEvent {
key: map_winit_key(&event.logical_key),
state: match event.state {

View File

@ -224,7 +224,7 @@ impl<'a> State<'a> {
topology: wgpu::PrimitiveTopology::TriangleList,
strip_index_format: None,
front_face: wgpu::FrontFace::Ccw,
cull_mode: Some(wgpu::Face::Back),
cull_mode: None,
// Setting this to anything other than Fill requires Features::NON_FILL_POLYGON_MODE
polygon_mode: wgpu::PolygonMode::Fill,
// Requires Features::DEPTH_CLIP_CONTROL