summaryrefslogtreecommitdiff
path: root/data/shaders/pbr/pbr-frag.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'data/shaders/pbr/pbr-frag.glsl')
-rw-r--r--data/shaders/pbr/pbr-frag.glsl7
1 files changed, 6 insertions, 1 deletions
diff --git a/data/shaders/pbr/pbr-frag.glsl b/data/shaders/pbr/pbr-frag.glsl
index a4790b8..1552880 100644
--- a/data/shaders/pbr/pbr-frag.glsl
+++ b/data/shaders/pbr/pbr-frag.glsl
@@ -1,5 +1,10 @@
#version 130
+in vec2 frag_tex;
+uniform vec3 base_color_factor;
+uniform sampler2D base_color_texture;
+
void main (void) {
- gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
+ gl_FragColor = texture2D(base_color_texture, frag_tex) *
+ vec4(base_color_factor, 1.0);
}