mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
In-game mods (GameBanana browser, search and installs, with the Mask Salesman), code-patch and cheat mods, the devs' test18 to test45 work (full performance overlay, frame pacing on, steady frame rate, save export and import, bug capture, new options rows, Setup's Mods page and Add to Steam), occlusion queries and new defaults, Auto resolution that scales, replay helper threads and robust buffers off by default, the options in sections.
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
#version 450
|
|
// (Triforce) The game's SMAA composition replaced (gpu/vk/vk_aa.cpp, the Insert menu's Anti-aliasing row): mode 0 stores the
|
|
// tone mapped picture as it is (Off), mode 1 smooths its edges first (FXAA: aa_fxaa.glsl). Input: the picture the game's pass
|
|
// samples, linear. Output: the target's raw RGB9E5 words of the square root of each channel (aa_common.glsl), through an
|
|
// R32_UINT view. After NX2navi's shaders/aa_post.comp.
|
|
#extension GL_GOOGLE_include_directive : require
|
|
|
|
layout(local_size_x = 8, local_size_y = 8) in;
|
|
layout(binding = 0) uniform sampler2D src;
|
|
layout(binding = 1, r32ui) uniform writeonly uimage2D dst;
|
|
layout(push_constant) uniform Push {
|
|
vec2 inv; // (1 / size)
|
|
ivec2 size; // (the target's size)
|
|
int mode; // (0 the picture as it is, 1 FXAA)
|
|
} pc;
|
|
|
|
#include "aa_common.glsl"
|
|
vec3 aa_at(vec2 uv) { return aa_encode(textureLod(src, uv, 0.0).rgb); }
|
|
#include "aa_fxaa.glsl"
|
|
|
|
void main() {
|
|
ivec2 p = ivec2(gl_GlobalInvocationID.xy);
|
|
if (p.x >= pc.size.x || p.y >= pc.size.y) return;
|
|
vec2 uv = (vec2(p) + 0.5) * pc.inv;
|
|
vec3 c = pc.mode == 1 ? aa_fxaa(uv, pc.inv) : aa_encode(texelFetch(src, p, 0).rgb);
|
|
imageStore(dst, p, uvec4(aa_pack_rgb9e5(c), 0u, 0u, 0u));
|
|
}
|