Skip to content

Commit

Permalink
[Skylanders Trap Team] HUD, blur filter removal and more (#674)
Browse files Browse the repository at this point in the history
Thanks to @Flextape05 for his work on these additions!
  • Loading branch information
Flextape05 authored Jan 13, 2025
1 parent 2386f8e commit c5bb44a
Show file tree
Hide file tree
Showing 42 changed files with 1,925 additions and 168 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#version 460

// Define uniform binding for Vulkan and OpenGL compatibility
#ifdef VULKAN
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
#else
uniform sampler2D textureUnitPS0;
#endif

// Input and output locations
layout(location = 0) in vec2 passUV;
layout(location = 0) out vec4 passPixelColor0;

void main()
{
passPixelColor0 = texture(textureUnitPS0, passUV);
}
6 changes: 6 additions & 0 deletions src/SkylandersGiants/Enhancements/BloomRemoval/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Definition]
titleIds = 000500001010D700,0005000010116000
name = Bloom removal
path = "Skylanders: Giants/Enhancements/Bloom removal"
description = Removes the bloom when playing the game||Made by Flextape05
version = 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#version 460

// Define uniform binding for Vulkan and OpenGL compatibility
#ifdef VULKAN
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
#else
uniform sampler2D textureUnitPS0;
#endif

// Input and output locations
layout(location = 0) in vec2 passUV;
layout(location = 0) out vec4 passPixelColor0;

void main()
{
passPixelColor0 = texture(textureUnitPS0, passUV);
}
6 changes: 6 additions & 0 deletions src/SkylandersGiants/Enhancements/BlurRemoval/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Definition]
titleIds = 000500001010D700,0005000010116000
name = Blur filter removal
path = "Skylanders: Giants/Enhancements/Blur filter removal"
description = Removes the muddy blur AA when playing the game||Made by Flextape05
version = 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#version 460

// Define uniform binding for Vulkan and OpenGL compatibility
#ifdef VULKAN
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
#else
uniform sampler2D textureUnitPS0;
#endif

// Input and output locations
layout(location = 0) in vec2 passUV;
layout(location = 0) out vec4 passPixelColor0;

void main()
{
passPixelColor0 = texture(textureUnitPS0, passUV);
}
6 changes: 6 additions & 0 deletions src/SkylandersGiants/Enhancements/DOF/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Definition]
titleIds = 000500001010D700,0005000010116000
name = BackgroundBlur Removal
path = "Skylanders: Giants/Enhancements/DOF removal"
description = disables the games backbground blur||Made by Flextape05
version = 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#version 460

layout(set = 1, binding = 1, std140) uniform ufBlock
{
ivec4 uf_remappedPS[3];
float uf_alphaTestRef; // Threshold for alpha testing
vec4 uf_fragCoordScale;
} _86;

layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;

layout(location = 0) in vec4 passParameterSem128;
layout(location = 1) in vec4 passParameterSem129;
layout(location = 0) out vec4 passPixelColor0;

void main()
{
// Set the fragment color to fully transparent
passPixelColor0 = vec4(0.0, 0.0, 0.0, 0.0);
}
6 changes: 6 additions & 0 deletions src/SkylandersGiants/Enhancements/HUD/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Definition]
titleIds = 000500001010D700,0005000010116000
name = No HUD
path = "Skylanders: Giants/Enhancements/No HUD"
description = Removes the HUD from the game (breaks the menus)||Made by Flextape05
version = 6
13 changes: 13 additions & 0 deletions src/SkylandersGiants/Graphics/patches.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tfbgame_gold0EU]
moduleMatches = 0x62cc63a5
0x10007e18 = .float $width/$height
0x10007e10 = .float $hudX
0x10007e14 = .float $hudY
0x10007c00 = .float $fov

[tfbgame_gold0US]
moduleMatches = 0x71e3cf7e
0x10007e18 = .float $width/$height
0x10007e10 = .float $hudX
0x10007e14 = .float $hudY
0x10007c00 = .float $fov
145 changes: 141 additions & 4 deletions src/SkylandersGiants/Graphics/rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,28 @@
titleIds = 000500001010D700,0005000010116000
name = Resolution
path = "Skylanders: Giants/Graphics"
description = Changes the resolution of the game.
description = Changes the resolution of the game.||Aspect ratio patch Made by Flextape05

version = 7

[Default]
$width = 1280
$height = 720
$gameWidth = 1280
$gameHeight = 720

$padWidth = 854
$padHeight = 480
$shadowRes = 1
$hudY = 720
$hudX = 1280
$fov = 57.29578

# Resolution
[Preset]
category = Resolution
name = 1280x720 (Default)
$width = 1280
$height = 720

[Preset]
category = Resolution
Expand All @@ -28,8 +39,9 @@ $height = 540

[Preset]
category = Resolution
name = 1280x720 (Default)
default = 1
name = 1024x576
$width = 1024
$height = 576

[Preset]
category = Resolution
Expand Down Expand Up @@ -73,6 +85,131 @@ name = 7680x4320
$width = 7680
$height = 4320

[Preset]
category = Resolution
name = 2560x1080(21:9)
$width = 2560
$height = 1080
$hudY = 720
$hudX = 1720
$fov = 48.29578

[Preset]
category = Resolution
name = 3440x1440(21:9)
$width = 3440
$height = 1440
$hudY = 720
$hudX = 1720
$fov = 48.29578

[Preset]
category = Resolution
name = 5120x2160(21:9)
$width = 5120
$height = 2160
$hudY = 720
$hudX = 1720
$fov = 48.29578

[Preset]
category = Resolution
name = 3840x1080(32:9)
$width = 3840
$height = 1080
$hudY = 720
$hudX = 2560
$fov = 36.19578

[Preset]
category = Resolution
name = 5120x1440(32:9)
$width = 5120
$height = 1440
$hudY = 720
$hudX = 2560
$fov = 36.19578

[Preset]
category = Resolution
name = 5760x1080(48:9)
$width = 5760
$height = 1080
$hudY = 720
$hudX = 3840
$fov = 42.39578

[Preset]
category = Resolution
name = 7680x1440(48:9)
$width = 7680
$height = 1440
$hudY = 720
$hudX = 3840
$fov = 42.39578

[Preset]
category = Resolution
name = 640x480(4:3)
$width = 640
$height = 480
$hudY = 768
$hudX = 1024
$fov = 0.0039215689

[Preset]
category = Resolution
name = 1024x768(4:3)
$width = 1024
$height = 768
$hudY = 768
$hudX = 1024
$fov = 0.0039215689

[Preset]
category = Resolution
name = 1600x1200(4:3)
$width = 1600
$height = 1200
$hudY = 768
$hudX = 1024
$fov = 0.0039215689

[Preset]
category = Resolution
name = 1280x800(16:10)
$width = 1280
$height = 800
$hudY = 800
$hudX = 1280
$fov = 59.39578

[Preset]
category = Resolution
name = 1680x1050(16:10)
$width = 1680
$height = 1050
$hudY = 800
$hudX = 1280
$fov = 59.39578

[Preset]
category = Resolution
name = 1920x1200(16:10)
$width = 1920
$height = 1200
$hudY = 800
$hudX = 1280
$fov = 59.39578

[Preset]
category = Resolution
name = 2560x1600(16:10)
$width = 2560
$height = 1600
$hudY = 800
$hudX = 1280
$fov = 59.39578

[TextureRedefine]
width = 1280
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#version 460

// Define uniform binding for Vulkan and OpenGL compatibility
#ifdef VULKAN
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
#else
uniform sampler2D textureUnitPS0;
#endif

// Input and output locations
layout(location = 0) in vec2 passUV;
layout(location = 0) out vec4 passPixelColor0;

void main()
{
passPixelColor0 = texture(textureUnitPS0, passUV);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Definition]
titleIds = 0005000010142D00
name = Bloom removal
path = "Skylanders: Spyro's Adventure/Enhancements/Bloom removal"
description = Removes the bloom when playing the game||Made by Flextape05
version = 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#version 460

// Define uniform binding for Vulkan and OpenGL compatibility
#ifdef VULKAN
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
#else
uniform sampler2D textureUnitPS0;
#endif

// Input and output locations
layout(location = 0) in vec2 passUV;
layout(location = 0) out vec4 passPixelColor0;

void main()
{
passPixelColor0 = texture(textureUnitPS0, passUV);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Definition]
titleIds = 0005000010142D00
name = Blur filter removal
path = "Skylanders: Spyro's Adventure/Enhancements/Blur filter removal"
description = Removes the muddy blur AA when playing the game||Made by Flextape05
version = 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#version 460

// Define uniform binding for Vulkan and OpenGL compatibility
#ifdef VULKAN
layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;
#else
uniform sampler2D textureUnitPS0;
#endif

// Input and output locations
layout(location = 0) in vec2 passUV;
layout(location = 0) out vec4 passPixelColor0;

void main()
{
passPixelColor0 = texture(textureUnitPS0, passUV);
}
6 changes: 6 additions & 0 deletions src/SkylandersSpyrosAdventure/Enhancements/DOF/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Definition]
titleIds = 0005000010142D00
name = BackgroundBlur Removal
path = "Skylanders: Spyro's Adventure/Enhancements/DOF removal"
description = disables the games backbground blur||Made by Flextape05
version = 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#version 460

layout(set = 1, binding = 1, std140) uniform ufBlock
{
ivec4 uf_remappedPS[3];
float uf_alphaTestRef; // Threshold for alpha testing
vec4 uf_fragCoordScale;
} _86;

layout(set = 1, binding = 0) uniform sampler2D textureUnitPS0;

layout(location = 0) in vec4 passParameterSem128;
layout(location = 1) in vec4 passParameterSem129;
layout(location = 0) out vec4 passPixelColor0;

void main()
{
// Set the fragment color to fully transparent
passPixelColor0 = vec4(0.0, 0.0, 0.0, 0.0);
}
6 changes: 6 additions & 0 deletions src/SkylandersSpyrosAdventure/Enhancements/HUD/rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Definition]
titleIds = 0005000010142D00
name = No HUD
path = "Skylanders: Spyro's Adventure/Enhancements/No HUD"
description = Removes the HUD from the game (breaks the menus)||Made by Flextape05
version = 6
Loading

0 comments on commit c5bb44a

Please sign in to comment.