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

24 lines
371 B
GLSL
Raw Normal View History

2024-04-11 20:40:28 -04:00
#ifdef __cplusplus
#include <string>
const std::string shader_2d_line_frag = R"("
#version 300 es
precision mediump float;
out vec4 FragColor;
in vec2 uv;
in vec2 pos;
uniform sampler2D tex;
uniform vec4 color;
uniform vec4 use_texture;
vec4 linear_iter(vec4 i, vec4 p, float factor){
return (i + p) * factor;
}
void main() {
2024-04-12 00:10:29 -04:00
FragColor = color;
2024-04-11 20:40:28 -04:00
}
")";
#endif