shader vacuuming
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_depth.fs
index a2b7642c2df612c6285a630d360254793c1aa303..2ac60135f18e5ab04e510120483b26aa12fe5836 100644 (file)
@@ -29,5 +29,5 @@ void main()
 {
    vec3 halfview = normalize( uCamera - aWorldCo );
    float depth = water_depth( aWorldCo, halfview );
-   FragColor = vec4( aWorldCo.y, 0.0, 0.0,depth );
+   FragColor = vec4( depth, 0.0, 0.0, 0.0 );
 }