mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
11 lines
328 B
GLSL
11 lines
328 B
GLSL
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);
|
|
}
|