BLT-With-Graphics-Template/include/blt/gfx/renderer/shaders/pp_screen.frag

22 lines
355 B
GLSL
Raw Normal View History

2024-05-03 22:14:48 -04:00
#ifdef __cplusplus
#include <string>
const std::string shader_pp_screen_frag = R"("
2024-05-03 22:14:48 -04:00
#version 300 es
precision mediump float;
2024-05-09 13:51:14 -04:00
${LAYOUT_STRING} out vec4 FragColor;
2024-05-03 22:14:48 -04:00
in vec2 uv;
in vec2 pos;
uniform sampler2D tex;
vec4 linear_iter(vec4 i, vec4 p, float factor){
return (i + p) * factor;
}
void main() {
FragColor = texture(tex, uv);
}
")";
#endif