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.
17 lines
660 B
Plaintext
17 lines
660 B
Plaintext
#version 450
|
|
// (Triforce) SMAA pass 1 (gpu/vk/vk_aa.cpp): luma edge detection over pass 0's luma into the edges image (red: an edge on the
|
|
// pixel's left, green: on its top). After NX2navi's shaders/smaa_edge.comp.
|
|
#extension GL_GOOGLE_include_directive : require
|
|
#include "smaa_setup.glsl"
|
|
layout(binding = 0) uniform sampler2D luma; // (smaa_luma.comp's, linear filtering)
|
|
layout(binding = 1, rgba8) uniform writeonly image2D edges;
|
|
|
|
void main() {
|
|
ivec2 p;
|
|
vec2 uv;
|
|
if (!smaa_pixel(p, uv)) return;
|
|
vec4 offset[3];
|
|
SMAAEdgeDetectionVS(uv, offset);
|
|
imageStore(edges, p, vec4(SMAALumaEdgeDetectionPS(uv, offset, luma), 0.0, 0.0));
|
|
}
|