Corrected shadow cull mode

This commit is contained in:
Joshua Barretto 2021-02-04 14:10:24 +00:00 committed by Imbris
parent a1ab844834
commit 6228430002

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 {