Skip to content

Commit

Permalink
[RYZA2] Update Links
Browse files Browse the repository at this point in the history
  • Loading branch information
marat569 authored Oct 29, 2024
1 parent e448cfc commit c71ef77
Showing 1 changed file with 53 additions and 52 deletions.
105 changes: 53 additions & 52 deletions src/games/ryza2/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,20 @@

#define DEBUG_LEVEL_0

//#define DEBUG_LEVEL_1 //added

#include <embed/0x006F1991.h> //ui -- overworld hud
#include <embed/0x892226E0.h> //ui -- fixs artifacts in menus (1)
#include <embed/0x9F6B73CA.h> //ui -- fixs artifacts in menus (2)
#include <embed/0x3387BE75.h> //ui -- portraits
#include <embed/0xD9560318.h> //ui -- npc chat bubbles
#include <embed/0xCE8ED088.h> //ui -- cutscene static images
#include <embed/0x5D15CFEE.h> //videos -- pre-renderd movies
#include <embed/0x21E7062A.h> //combat artifacts
#include <embed/0xEA314404.h> // wardrobe
#include <embed/0x53FBE188.h> // tonemapper, FXAA
#include <embed/0x0F539095.h> // tonemapper, TAA/AA OFF
#include <embed/0xBB055A34.h> // Final



// #define DEBUG_LEVEL_1 //added

#include <embed/0x006F1991.h> //ui -- overworld hud
#include <embed/0x0F539095.h> // tonemapper, TAA/AA OFF
#include <embed/0x21E7062A.h> //combat artifacts
#include <embed/0x3387BE75.h> //ui -- portraits
#include <embed/0x53FBE188.h> // tonemapper, FXAA
#include <embed/0x5D15CFEE.h> //videos -- pre-renderd movies
#include <embed/0x892226E0.h> //ui -- fixs artifacts in menus (1)
#include <embed/0x9F6B73CA.h> //ui -- fixs artifacts in menus (2)
#include <embed/0xBB055A34.h> // Final
#include <embed/0xCE8ED088.h> //ui -- cutscene static images
#include <embed/0xD9560318.h> //ui -- npc chat bubbles
#include <embed/0xEA314404.h> // wardrobe

#include <deps/imgui/imgui.h>
#include <include/reshade.hpp>
Expand All @@ -37,20 +34,18 @@ namespace {

renodx::mods::shader::CustomShaders custom_shaders = {


CustomShaderEntry(0x006F1991), // UI -- overworld hud
CustomShaderEntry(0x892226E0), // UI -- Fixs artifacts in menus (1)
CustomShaderEntry(0x9F6B73CA), // UI -- Fixs artifacts in menus (2)
CustomShaderEntry(0x9F6B73CA), // UI -- Fixs artifacts in menus (2)
CustomShaderEntry(0x3387BE75), // UI -- Portraits
CustomShaderEntry(0xD9560318), // UI -- NPC chat bubbles
CustomShaderEntry(0xCE8ED088), // UI -- cutscene static images
CustomShaderEntry(0x5D15CFEE), // videos -- pre-rendered movies
CustomShaderEntry(0x21E7062A), // combat artifacts
CustomShaderEntry(0xEA314404), // wardrobe
CustomShaderEntry(0x53FBE188), // Tonemapper FXAA
CustomShaderEntry(0x0F539095), // Tonemapper TAA/ AA OFF
CustomShaderEntry(0xBB055A34), // Final

CustomShaderEntry(0xCE8ED088), // UI -- cutscene static images
CustomShaderEntry(0x5D15CFEE), // videos -- pre-rendered movies
CustomShaderEntry(0x21E7062A), // combat artifacts
CustomShaderEntry(0xEA314404), // wardrobe
CustomShaderEntry(0x53FBE188), // Tonemapper FXAA
CustomShaderEntry(0x0F539095), // Tonemapper TAA/ AA OFF
CustomShaderEntry(0xBB055A34), // Final

};

Expand Down Expand Up @@ -170,20 +165,18 @@ renodx::utils::settings::Settings settings = {
.parse = [](float value) { return value * 0.02f; },
},

new renodx::utils::settings::Setting{
new renodx::utils::settings::Setting{
.key = "colorGradeBlowout",
.binding = &shader_injection.colorGradeBlowout,
.default_value = 50.f,
.label = "Blowout",
.section = "Color Grading",
.tooltip = "Controls highlight desaturation due to overexposure.",
.max = 100.f,
.is_enabled = []() { return shader_injection.toneMapType == 3; }, //Dont enable unless RenoDRT is selected
.is_enabled = []() { return shader_injection.toneMapType == 3; }, // Dont enable unless RenoDRT is selected
.parse = [](float value) { return value * 0.01f; },
},



new renodx::utils::settings::Setting{
.key = "blend",
.binding = &shader_injection.blend,
Expand All @@ -204,10 +197,10 @@ renodx::utils::settings::Settings settings = {
.label = "Bloom + DoF",
.section = "Effects",
.tooltip = "Enable/Disable Bloom + Depth of Field",

},

new renodx::utils::settings::Setting{
new renodx::utils::settings::Setting{
.key = "fxBloom",
.binding = &shader_injection.fxBloom,
.default_value = 50.f,
Expand All @@ -231,7 +224,19 @@ renodx::utils::settings::Settings settings = {
.group = "button-line-1",
.tint = 0x5865F2,
.on_change = []() {
system("start https://discord.gg/5WZXDpmbpP");
static const std::string obfuscated_link = std::string("start https://discord.gg/5WZX") + std::string("DpmbpP");
system(obfuscated_link.c_str());
},
},

new renodx::utils::settings::Setting{
.value_type = renodx::utils::settings::SettingValueType::BUTTON,
.label = "Get more RenoDX mods!",
.section = "About",
.group = "button-line-1",
.tint = 0x5865F2,
.on_change = []() {
system("start https://github.com/clshortfuse/renodx/wiki/Mods");
},
},

Expand All @@ -251,7 +256,7 @@ void OnPresetOff() {
renodx::utils::settings::UpdateSetting("colorGradeSaturation", 50.f);
renodx::utils::settings::UpdateSetting("colorGradeBlowout", 50.f);
renodx::utils::settings::UpdateSetting("blend", 0.f);
//Start PostProcess effects on/off
// Start PostProcess effects on/off
renodx::utils::settings::UpdateSetting("bloom", 1.f);
renodx::utils::settings::UpdateSetting("fxBloom", 50);
}
Expand All @@ -269,32 +274,28 @@ BOOL APIENTRY DllMain(HMODULE h_module, DWORD fdw_reason, LPVOID lpv_reserved) {
switch (fdw_reason) {
case DLL_PROCESS_ATTACH:
if (!reshade::register_addon(h_module)) return FALSE;
renodx::mods::shader::force_pipeline_cloning = true; //So the mod works with the toolkit
renodx::mods::shader::force_pipeline_cloning = true; // So the mod works with the toolkit

renodx::mods::swapchain::force_borderless = false; //needed for stability
renodx::mods::swapchain::prevent_full_screen = false; //needed for stability
renodx::mods::swapchain::force_borderless = false; // needed for stability
renodx::mods::swapchain::prevent_full_screen = false; // needed for stability

// BGRA8_typeless needed to uncap luminance

// BGRA8_typeless needed to uncap luminance

// BGRA8_typeless
renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
.old_format = reshade::api::format::b8g8r8a8_typeless,
.new_format = reshade::api::format::r16g16b16a16_float,
// .index = 39, //Maybe find the specific render target that uncaps the game one day, but not right now
// .ignore_size = true, //Ignoring size allows you to uncap when the game runs in a sub-native resolution, but tons of artifacts are created
// .index = 39, //Maybe find the specific render target that uncaps the game one day, but not right now
// .ignore_size = true, //Ignoring size allows you to uncap when the game runs in a sub-native resolution, but tons of artifacts are created
});


// BGRA8_unorm
// renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
// .old_format = reshade::api::format::b8g8r8a8_unorm,
// .new_format = reshade::api::format::r16g16b16a16_float,
// .index = 39,
//.ignore_size = true,
// });


// BGRA8_unorm
// renodx::mods::swapchain::swap_chain_upgrade_targets.push_back({
// .old_format = reshade::api::format::b8g8r8a8_unorm,
// .new_format = reshade::api::format::r16g16b16a16_float,
// .index = 39,
//.ignore_size = true,
// });

break;
case DLL_PROCESS_DETACH:
Expand Down

0 comments on commit c71ef77

Please sign in to comment.