mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
post-processing test
This commit is contained in:
parent
e7af5830cf
commit
8ed65ca51e
13 changed files with 268 additions and 113 deletions
13
res/shaders/screen.glslf
Normal file
13
res/shaders/screen.glslf
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
in vec2 v_coord;
|
||||
out vec4 f_color;
|
||||
|
||||
uniform sampler2D u_texture0;
|
||||
uniform float u_timer;
|
||||
|
||||
void main(){
|
||||
vec2 coord = v_coord;
|
||||
coord.x += sin(u_timer*5.0+coord.x*4.0) * 0.02;
|
||||
coord.y += cos(u_timer*5.0+coord.y*4.0) * 0.02;
|
||||
f_color = texture(u_texture0, coord);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue