Skip to content

Commit

Permalink
Merge pull request #30 from marat569/BerserkBotH
Browse files Browse the repository at this point in the history
Berserk bot h
  • Loading branch information
marat569 authored Oct 15, 2024
2 parents bfca162 + 9295e21 commit 55b5466
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/games/BerserkBotH/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ renodx::utils::settings::Settings settings = {
.parse = [](float value) { return value * 0.02f; },
},

new renodx::utils::settings::Setting{
new renodx::utils::settings::Setting{
.key = "colorGradeFlare",
.binding = &shader_injection.colorGradeFlare,
.default_value = 0.05f,
.default_value = 0.01f,
.label = "Flare",
.section = "Color Grading",
.tooltip = "A form of contrast that is biased to shadows.",
Expand Down Expand Up @@ -181,7 +181,7 @@ renodx::utils::settings::Settings settings = {

new renodx::utils::settings::Setting{
.value_type = renodx::utils::settings::SettingValueType::TEXT,
.label = "- Please make all post process effects are on in settings! \r\n - Join the HDR Den discord for help!",
.label = " - Please enable all post process effects are on in settings! \r\n - Join the HDR Den discord for help!",
.section = "Instructions",
},

Expand Down Expand Up @@ -210,7 +210,7 @@ void OnPresetOff() {
renodx::utils::settings::UpdateSetting("colorGradeShadows", 50.f);
renodx::utils::settings::UpdateSetting("colorGradeContrast", 50.f);
renodx::utils::settings::UpdateSetting("colorGradeSaturation", 50.f);
renodx::utils::settings::UpdateSetting("colorGradeFlare", 0.05f);
renodx::utils::settings::UpdateSetting("colorGradeFlare", 0.01f);
// Start PostProcess effects on/off
renodx::utils::settings::UpdateSetting("fxBloom", 100.f);
renodx::utils::settings::UpdateSetting("fxaa", 1.f);
Expand Down
2 changes: 1 addition & 1 deletion src/games/BerserkBotH/tonemapper.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ float3 applyUserTonemap(float3 untonemapped, float3 vanillaColor, float3 midGray
// float vanillaMidGray = 0.1f; //0.18f old default
float vanillaMidGray = midGray; // calculate mid grey from the second hable run
float renoDRTContrast = 1.f;
float renoDRTFlare = injectedData.colorGradeFlare; //0.05f seems to be a good middleground
float renoDRTFlare = injectedData.colorGradeFlare; // 0.05f seems to be a good middleground
float renoDRTShadows = 1.f;
float renoDRTDechroma = 0.f;
// float renoDRTDechroma = injectedData.colorGradeBlowout;
Expand Down
4 changes: 2 additions & 2 deletions src/games/BerserkBotH/tonemapper_0x708EB6D8.ps_5_0.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ void main(
o0.rgb = applyUserTonemap(untonemapped.rgb, vanillaColor, renodx::color::y::from::BT709(vanMidGray));
// o0.rgb = fast_reinhard(untonemapped.rgb, injectedData.toneMapPeakNits / injectedData.toneMapGameNits, 0, vanMidGray.r);

o0.xyz = renodx::color::correct::GammaSafe(o0.xyz); //sRGB -> pow2.2
o0.xyz = renodx::color::correct::GammaSafe(o0.xyz); // sRGB -> pow2.2
o0.rgb *= injectedData.toneMapGameNits / injectedData.toneMapUINits; // scale output by gamenits / ui nits -- will restore in the final shader
o0.xyz = renodx::color::correct::GammaSafe(o0.xyz, true); //pow2.2 -> sRGB
o0.xyz = renodx::color::correct::GammaSafe(o0.xyz, true); // pow2.2 -> sRGB

return;
}

0 comments on commit 55b5466

Please sign in to comment.