Fix culling of postprocess/cloud triangles

This commit is contained in:
Imbris 2020-12-05 21:23:50 -05:00 committed by Avi Weinstock
parent 0b9e1fdf6c
commit 3039bae635
2 changed files with 2 additions and 19 deletions

View File

@ -174,16 +174,7 @@ impl CloudsPipeline {
module: fs_module,
entry_point: "main",
}),
// TODO: this could be None?
rasterization_state: Some(wgpu::RasterizationStateDescriptor {
front_face: wgpu::FrontFace::Ccw,
cull_mode: wgpu::CullMode::Back,
polygon_mode: wgpu::PolygonMode::Fill,
clamp_depth: false,
depth_bias: 0,
depth_bias_slope_scale: 0.0,
depth_bias_clamp: 0.0,
}),
rasterization_state: None,
primitive_topology: wgpu::PrimitiveTopology::TriangleList,
color_states: &[wgpu::ColorStateDescriptor {
format: wgpu::TextureFormat::Rgba8UnormSrgb,

View File

@ -143,15 +143,7 @@ impl PostProcessPipeline {
module: fs_module,
entry_point: "main",
}),
rasterization_state: Some(wgpu::RasterizationStateDescriptor {
front_face: wgpu::FrontFace::Ccw,
cull_mode: wgpu::CullMode::Back,
polygon_mode: wgpu::PolygonMode::Fill,
clamp_depth: false,
depth_bias: 0,
depth_bias_slope_scale: 0.0,
depth_bias_clamp: 0.0,
}),
rasterization_state: None,
primitive_topology: wgpu::PrimitiveTopology::TriangleList,
color_states: &[wgpu::ColorStateDescriptor {
format: sc_desc.format,