protot/data/shaders/fs_simpletexture.glsl

18 lines
247 B
Plaintext
Raw Normal View History

2018-02-13 14:27:16 +01:00
#version 330 core
in vec2 ioUV;
2018-02-13 14:27:16 +01:00
out vec3 outColor;
2018-02-13 14:27:16 +01:00
uniform sampler2D uTexture;
uniform float uTime;
2018-02-13 14:27:16 +01:00
void main() {
outColor = texture(uTexture, ioUV
2018-02-13 14:27:16 +01:00
+ 0.00 * vec2(
sin(uTime + 1024.0 * ioUV.x),
cos(uTime + 768.0 * ioUV.y)
2018-02-13 14:27:16 +01:00
)
).xyz;
}