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.
21 lines
960 B
Plaintext
21 lines
960 B
Plaintext
#version 450
|
|
// (Triforce) SMAA pass 3 (gpu/vk/vk_aa.cpp): neighbourhood blending of the tone mapped picture by the weights, in linear light
|
|
// (as SMAA asks of a picture read through an sRGB view), stored into the game's target as its raw RGB9E5 words of the square
|
|
// root (aa_common.glsl). After NX2navi's shaders/smaa_blend.comp.
|
|
#extension GL_GOOGLE_include_directive : require
|
|
#include "smaa_setup.glsl"
|
|
#include "aa_common.glsl"
|
|
layout(binding = 0) uniform sampler2D color; // (the picture the game's pass samples, linear filtering)
|
|
layout(binding = 1) uniform sampler2D weights; // (linear filtering)
|
|
layout(binding = 2, r32ui) uniform writeonly uimage2D dst;
|
|
|
|
void main() {
|
|
ivec2 p;
|
|
vec2 uv;
|
|
if (!smaa_pixel(p, uv)) return;
|
|
vec4 offset;
|
|
SMAANeighborhoodBlendingVS(uv, offset);
|
|
vec3 c = SMAANeighborhoodBlendingPS(uv, offset, color, weights).rgb;
|
|
imageStore(dst, p, uvec4(aa_pack_rgb9e5(aa_encode(c)), 0u, 0u, 0u));
|
|
}
|