mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
feat: post-processing effects
This commit is contained in:
parent
22e97b1766
commit
ba170035ef
19 changed files with 216 additions and 84 deletions
10
res/shaders/effect.glslv
Normal file
10
res/shaders/effect.glslv
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
layout (location = 0) in vec2 v_position;
|
||||
|
||||
out vec2 v_uv;
|
||||
|
||||
uniform ivec2 u_screenSize;
|
||||
|
||||
void main(){
|
||||
v_uv = v_position * 0.5 + 0.5;
|
||||
gl_Position = vec4(v_position, 0.0, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue