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