branch | v_0 |
changeset 2 | 3faef2f5128e |
parent 0 | bb715a82a8f1 |
child 4 | 9aba96f0b001 |
--- a/shaders/first.frag Tue Nov 28 22:45:33 2023 +0100 +++ b/shaders/first.frag Wed Nov 29 01:11:19 2023 +0100 @@ -1,10 +1,10 @@ #version 330 core -uniform sampler2D jazz; -in vec2 textureCoordinate; -out vec3 outColor; +uniform sampler2D uTexture; +in vec2 vTextureXY; +out vec3 fColor; void main(){ - outColor = texture(jazz, textureCoordinate).xyz; - // outColor *= vec3(0.8, 1., 0.2); + fColor = texture(uTexture, vTextureXY).rgb; + // fColor *= vec3(0.8, 1., 0.2); }