BLT-With-Graphics-Template/tests/include/shaders/test.frag

24 lines
464 B
GLSL
Raw Normal View History

2023-12-28 16:14:12 -05:00
#ifdef __cplusplus
#include <string>
std::string shader_test_frag = R"("
#version 300 es
precision mediump float;
out vec4 FragColor;
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 = vec4(pos, 0.0, 1.0f);
2023-12-29 19:25:41 -05:00
FragColor = texture(tex, uv);
//FragColor = linear_iter(texture(tex, uv), vec4(pos, 0.0, 1.0), (uv.x + uv.y + 1.0) / 3.0);
2023-12-28 16:14:12 -05:00
}
")";
#endif