From 3039bae6353a4b1519ecdad36cb3e685a760e11b Mon Sep 17 00:00:00 2001 From: Imbris Date: Sat, 5 Dec 2020 21:23:50 -0500 Subject: [PATCH] Fix culling of postprocess/cloud triangles --- voxygen/src/render/pipelines/clouds.rs | 11 +---------- voxygen/src/render/pipelines/postprocess.rs | 10 +--------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/voxygen/src/render/pipelines/clouds.rs b/voxygen/src/render/pipelines/clouds.rs index 1fb3b6d90d..4fb3e622b8 100644 --- a/voxygen/src/render/pipelines/clouds.rs +++ b/voxygen/src/render/pipelines/clouds.rs @@ -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, diff --git a/voxygen/src/render/pipelines/postprocess.rs b/voxygen/src/render/pipelines/postprocess.rs index 101517497a..d68137fe78 100644 --- a/voxygen/src/render/pipelines/postprocess.rs +++ b/voxygen/src/render/pipelines/postprocess.rs @@ -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,