armory/raw/smaa_edge_detect/smaa_separate_multisamples.frag.glsl

28 lines
532 B
Text
Raw Normal View History

2016-06-13 15:07:57 +02:00
#version 450
#ifdef GL_ES
precision mediump float;
#endif
2016-06-14 23:32:44 +02:00
uniform sampler2D colorTex;
2016-06-13 15:07:57 +02:00
in vec2 texCoord;
// Separate Multisamples Pixel Shader (Optional Pass)
#ifdef SMAALoad
2016-06-14 12:33:11 +02:00
void SMAASeparatePS(vec4 position,
vec2 texcoord,
out vec4 target0,
out vec4 target1,
2016-06-13 15:07:57 +02:00
SMAATexture2DMS2(colorTexMS)) {
2016-06-14 12:33:11 +02:00
ivec2 pos = ivec2(position.xy);
2016-06-13 15:07:57 +02:00
target0 = SMAALoad(colorTexMS, pos, 0);
target1 = SMAALoad(colorTexMS, pos, 1);
}
#endif
void main() {
2016-06-14 23:32:44 +02:00
2016-06-13 15:07:57 +02:00
}