mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41: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
13
res/shaders/effect.glslf
Normal file
13
res/shaders/effect.glslf
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
in vec2 v_uv;
|
||||
out vec4 f_color;
|
||||
|
||||
uniform sampler2D u_screen;
|
||||
uniform ivec2 u_screenSize;
|
||||
uniform float u_intensity;
|
||||
|
||||
#include <__effect__>
|
||||
|
||||
void main() {
|
||||
f_color = effect();
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue