summaryrefslogtreecommitdiff
path: root/resources/shaders/shader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'resources/shaders/shader.frag')
-rwxr-xr-xresources/shaders/shader.frag8
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/shaders/shader.frag b/resources/shaders/shader.frag
index 141915e..fc78890 100755
--- a/resources/shaders/shader.frag
+++ b/resources/shaders/shader.frag
@@ -9,6 +9,9 @@ in vec3 refrPos;
in float refrProb;
in vec2 uv;
+uniform sampler2D texture_img;
+
+
uniform int wire = 0;
uniform float red = 1.0;
uniform float green = 1.0;
@@ -56,4 +59,9 @@ void main() {
// Dividing refrProb by 2 just for heuristic. Want more phong to show through.
// fragColor = clamp(fragColor, 0.f, 1.f);
// fragColor = vec4(refrProb, 0.f, 0.f, 1.f);
+
+
+ // assign texture
+ fragColor = texture(texture_img, uv);
+
}