Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/base/shaders/edge.frag.glsl

18 lines
492 B
Text
Raw Normal View History

2021-05-09 20:04:41 -04:00
#define SMAA_INCLUDE_PS 1
#include "smaa_common.glsl"
layout(location = 0) in vec2 inUV;
layout(location = 1) in vec4 inOffset[3];
layout(location = 0) out vec4 outColor;
layout(binding = 0) uniform sampler2D imageSampler;
layout(binding = 1) uniform sampler2D depthSampler;
void main() {
//vec2 edge = SMAALumaEdgeDetectionPS(inUV, inOffset, imageSampler, depthSampler);
vec2 edge = SMAADepthEdgeDetectionPS(inUV, inOffset, depthSampler);
2021-05-09 20:04:41 -04:00
outColor = vec4(edge, 0.0, 1.0);
}