back face culling

This commit is contained in:
Quaternions 2023-10-26 19:07:44 -07:00
parent e1f4f6e535
commit 08d4e7d997

View File

@ -802,6 +802,7 @@ impl GraphicsState{
}), }),
primitive: wgpu::PrimitiveState { primitive: wgpu::PrimitiveState {
front_face: wgpu::FrontFace::Cw, front_face: wgpu::FrontFace::Cw,
cull_mode:Some(wgpu::Face::Front),
..Default::default() ..Default::default()
}, },
depth_stencil: Some(wgpu::DepthStencilState { depth_stencil: Some(wgpu::DepthStencilState {