Tue, 09 Apr 2024 21:18:52 +0200
add texture.h
universe@15 | 1 | #version 400 core |
universe@15 | 2 | |
universe@16 | 3 | layout(location = 0) out vec4 diffuse; |
universe@15 | 4 | in vec2 texcoord; |
universe@15 | 5 | |
universe@50 | 6 | uniform sampler2DRect tex; |
universe@15 | 7 | |
universe@15 | 8 | void main(void) { |
universe@50 | 9 | diffuse = texture(tex, texcoord); |
universe@15 | 10 | } |