Corrected shadow cull mode

This commit is contained in:
Joshua Barretto 2021-02-04 14:10:24 +00:00 committed by Avi Weinstock
parent 5e0f26ab30
commit d247379953

View File

@ -166,7 +166,7 @@ impl ShadowFigurePipeline {
topology: wgpu::PrimitiveTopology::TriangleList,
strip_index_format: None,
front_face: wgpu::FrontFace::Ccw,
cull_mode: wgpu::CullMode::Back,
cull_mode: wgpu::CullMode::Front,
polygon_mode: wgpu::PolygonMode::Fill,
},
depth_stencil: Some(wgpu::DepthStencilState {
@ -240,7 +240,7 @@ impl ShadowPipeline {
topology: wgpu::PrimitiveTopology::TriangleList,
strip_index_format: None,
front_face: wgpu::FrontFace::Ccw,
cull_mode: wgpu::CullMode::Back,
cull_mode: wgpu::CullMode::Front,
polygon_mode: wgpu::PolygonMode::Fill,
},
depth_stencil: Some(wgpu::DepthStencilState {