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

25 lines
427 B
GLSL
Raw Permalink Normal View History

2024-01-11 14:36:48 -05:00
#ifdef __cplusplus
#include <string>
const std::string shader_3d_textured_frag = R"("
#version 300 es
precision mediump float;
out vec4 FragColor;
in vec2 uv;
in vec2 pos;
in vec3 normal;
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() {
FragColor = texture(tex, uv) * vec4(abs(normal), 1.0);
}
")";
#endif