From 50f23261f0a1f0b7f3533487cb17cde4a103ed42 Mon Sep 17 00:00:00 2001 From: ThirteenAG Date: Tue, 26 Mar 2024 11:07:26 +0800 Subject: [PATCH] bloom/noise constants --- .../TBoGT/common/data/frontend_menus.xml | 11 ++++++---- .../TLAD/common/data/frontend_menus.xml | 8 ++++---- data/update/common/data/frontend_menus.xml | 9 +++++---- source/shaders.ixx | 20 ++++++++++++++++--- 4 files changed, 33 insertions(+), 15 deletions(-) diff --git a/data/update/TBoGT/common/data/frontend_menus.xml b/data/update/TBoGT/common/data/frontend_menus.xml index e6dd3c4f..e40c63fc 100644 --- a/data/update/TBoGT/common/data/frontend_menus.xml +++ b/data/update/TBoGT/common/data/frontend_menus.xml @@ -365,13 +365,13 @@ - + - + @@ -386,12 +386,12 @@ - + - + @@ -579,6 +579,9 @@ + diff --git a/data/update/TLAD/common/data/frontend_menus.xml b/data/update/TLAD/common/data/frontend_menus.xml index 54a6c42d..e93ce804 100644 --- a/data/update/TLAD/common/data/frontend_menus.xml +++ b/data/update/TLAD/common/data/frontend_menus.xml @@ -441,13 +441,13 @@ - + - + @@ -462,12 +462,12 @@ - + - + diff --git a/data/update/common/data/frontend_menus.xml b/data/update/common/data/frontend_menus.xml index e3dc807d..8cea0ca8 100644 --- a/data/update/common/data/frontend_menus.xml +++ b/data/update/common/data/frontend_menus.xml @@ -293,14 +293,14 @@ - + - + @@ -316,13 +316,13 @@ - + - + @@ -501,6 +501,7 @@ + diff --git a/source/shaders.ixx b/source/shaders.ixx index db9b7112..cf5cde97 100644 --- a/source/shaders.ixx +++ b/source/shaders.ixx @@ -114,13 +114,27 @@ public: pDevice->SetVertexShaderConstantF(227, &arr[0], 1); } - // DynamicShadowForTrees Wind Sway, More Shadows + // DynamicShadowForTrees Wind Sway, More Shadows, Bloom and Noise { static float arr2[4]; arr2[0] = Natives::IsInteriorScene() ? 0.0f : *dw11A2948; arr2[1] = static_cast(bMoreShadows); - arr2[2] = 0.0f; - arr2[3] = 0.0f; + + switch (FusionFixSettings.Get("PREF_BLOOM")) + { + case FusionFixSettings.BloomText.eCross: + arr2[2] = 1.0f; + break; + case FusionFixSettings.BloomText.eCircle: + arr2[2] = 2.0f; + break; + case FusionFixSettings.BloomText.eOff: + default: + arr2[2] = 0.0f; + break; + } + + arr2[3] = static_cast(FusionFixSettings.Get("PREF_EPISODIC_NOISE_FILTER")); pDevice->SetVertexShaderConstantF(233, &arr2[0], 1); }