mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
initial commit
This commit is contained in:
parent
27b194816b
commit
fc46b7c434
36 changed files with 755 additions and 71 deletions
11
res/shaders/effects/ssao.glsl
Normal file
11
res/shaders/effects/ssao.glsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
uniform vec3 samples[64];
|
||||
|
||||
vec4 effect() {
|
||||
vec2 noiseScale = u_screenSize / 4.0;
|
||||
|
||||
vec3 position = texture(u_position, v_uv).xyz;
|
||||
vec3 color = texture(u_screen, v_uv).rgb;
|
||||
vec3 normal = texture(u_normal, v_uv).xyz;
|
||||
vec3 randomVec = texture(u_noise, v_uv * noiseScale).xyz;
|
||||
return vec4(randomVec, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue