comandos i tecles per a manejar el nou disseny de shaders

This commit is contained in:
2026-03-29 09:09:22 +02:00
parent a9b7c3f025
commit 754ad2de49
7 changed files with 130 additions and 58 deletions
+12 -4
View File
@@ -66,13 +66,21 @@ void RenderInfo::render() const {
}
line += " | " + zoom_str + "x";
// PostFX: muestra preset y supersampling, o nada si está desactivado
// PostFX: muestra shader + preset y supersampling, o nada si está desactivado
if (Options::video.postfx) {
const bool IS_CRTPI = (Options::current_shader == Rendering::ShaderType::CRTPI);
const std::string SHADER_NAME = IS_CRTPI ? "crtpi" : "postfx";
std::string preset_name = "-";
if (!Options::postfx_presets.empty()) {
preset_name = Options::postfx_presets[static_cast<size_t>(Options::current_postfx_preset)].name;
if (IS_CRTPI) {
if (!Options::crtpi_presets.empty()) {
preset_name = Options::crtpi_presets[static_cast<size_t>(Options::current_crtpi_preset)].name;
}
} else {
if (!Options::postfx_presets.empty()) {
preset_name = Options::postfx_presets[static_cast<size_t>(Options::current_postfx_preset)].name;
}
}
line += " | " + preset_name + (Options::video.supersampling ? " (ss)" : "");
line += " | " + SHADER_NAME + " " + preset_name + (Options::video.supersampling ? " (ss)" : "");
}
// Todo en lowercase