mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
22 lines
601 B
GLSL
22 lines
601 B
GLSL
#version 450
|
|
#extension GL_GOOGLE_include_directive : require
|
|
|
|
layout(location = 0) in vec2 fragTexCoord;
|
|
layout(location = 0) out vec4 outColor;
|
|
layout(set = 0, binding = 0) uniform sampler2D InputTexture;
|
|
layout(push_constant) uniform Constants {
|
|
vec4 ndc;
|
|
vec4 metrics; // 1/width, 1/height, width, height
|
|
} pc;
|
|
|
|
#define SMAA_RT_METRICS pc.metrics
|
|
#define SMAA_GLSL_4
|
|
#define SMAA_PRESET_HIGH
|
|
#include "SMAA.hlsl"
|
|
|
|
void main() {
|
|
vec4 offset[3];
|
|
SMAAEdgeDetectionVS(fragTexCoord, offset);
|
|
outColor = vec4(SMAALumaEdgeDetectionPS(fragTexCoord, offset, InputTexture), 0.0, 0.0);
|
|
}
|