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.
20 lines
840 B
Plaintext
20 lines
840 B
Plaintext
#version 450
|
|
// (Triforce) SMAA pass 2 (gpu/vk/vk_aa.cpp): blending weights from the edges, with SMAA's area and search lookup textures
|
|
// (third_party/smaa AreaTex.h, SearchTex.h). After NX2navi's shaders/smaa_weight.comp.
|
|
#extension GL_GOOGLE_include_directive : require
|
|
#include "smaa_setup.glsl"
|
|
layout(binding = 0) uniform sampler2D edges; // (linear filtering)
|
|
layout(binding = 1) uniform sampler2D area; // (linear filtering)
|
|
layout(binding = 2) uniform sampler2D search; // (nearest)
|
|
layout(binding = 3, rgba8) uniform writeonly image2D weights;
|
|
|
|
void main() {
|
|
ivec2 p;
|
|
vec2 uv;
|
|
if (!smaa_pixel(p, uv)) return;
|
|
vec2 pix;
|
|
vec4 offset[3];
|
|
SMAABlendingWeightCalculationVS(uv, pix, offset);
|
|
imageStore(weights, p, SMAABlendingWeightCalculationPS(uv, pix, offset, edges, area, search, vec4(0.0)));
|
|
}
|