mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
fix ssao
This commit is contained in:
parent
021cfd8a1e
commit
3e66ff5924
4 changed files with 9 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ uniform samplerCube u_skybox;
|
|||
|
||||
void main(){
|
||||
vec3 dir = normalize(v_coord);
|
||||
f_position = vec4(0.0, 0.0, 0.0, 0.0);
|
||||
f_position = vec4(0.0, 0.0, -1e9, 1.0);
|
||||
f_normal = vec4(0.0);
|
||||
f_color = texture(u_skybox, dir);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue