mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 21:15:43 +00:00
23 lines
669 B
GLSL
23 lines
669 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(set = 1, binding = 0) uniform sampler2D WeightTexture;
|
|
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;
|
|
SMAANeighborhoodBlendingVS(fragTexCoord, offset);
|
|
outColor = SMAANeighborhoodBlendingPS(fragTexCoord, offset, InputTexture, WeightTexture);
|
|
}
|