Removed SSAA option to resolve issue #871.

This commit is contained in:
weldar 2020-12-01 09:43:06 -05:00
parent 6da55b8f2e
commit a2d98d31a7
3 changed files with 1 additions and 15 deletions

View File

@ -2077,14 +2077,12 @@ impl<'a> Widget for SettingsWindow<'a> {
/* AaMode::MsaaX4,
AaMode::MsaaX8,
AaMode::MsaaX16, */
AaMode::SsaaX4,
];
let mode_label_list = [
"No AA", "FXAA",
/* "MSAA x4",
"MSAA x8",
"MSAA x16 (experimental)", */
"SSAA x4",
];
// Get which AA mode is currently active

View File

@ -91,14 +91,6 @@ pub enum AaMode {
/// also struggle in the future with deferred shading, so they may be
/// removed in the future.
MsaaX16,
/// Super-sampling antialiasing, 4 samples per pixel.
///
/// Unlike MSAA, SSAA *always* performs 4 samples per pixel, rather than
/// trying to choose importance samples at boundary regions, so it works
/// much better with techniques like deferred rendering and greedy
/// meshing that (without significantly more work) invalidate the
/// GPU's assumptions about importance sampling.
SsaaX4,
#[serde(other)]
None,
}

View File

@ -448,10 +448,6 @@ impl Renderer {
gfx::texture::Kind::D2(upscaled.0, upscaled.1, gfx::texture::AaMode::Single)
},
// TODO: Ensure sampling in the shader is exactly between the 4 texels
AaMode::SsaaX4 => {
// TODO: Figure out how to do upscaling correctly with SSAA
gfx::texture::Kind::D2(size.0 * 2, size.1 * 2, gfx::texture::AaMode::Single)
},
AaMode::MsaaX4 => {
gfx::texture::Kind::D2(upscaled.0, upscaled.1, gfx::texture::AaMode::Multi(4))
},
@ -1852,7 +1848,7 @@ fn create_pipelines(
let anti_alias = Glsl::load_watched(
&["voxygen.shaders.antialias.", match mode.aa {
AaMode::None | AaMode::SsaaX4 => "none",
AaMode::None => "none",
AaMode::Fxaa => "fxaa",
AaMode::MsaaX4 => "msaa-x4",
AaMode::MsaaX8 => "msaa-x8",