launch option to load world
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / scene_position.fs
1 out vec4 FragColor;
2
3 uniform vec3 uCamera;
4 uniform vec3 uBoard0;
5 uniform vec3 uBoard1;
6
7 #include "light_clearskies_stddef.glsl"
8 #include "common_scene.glsl"
9
10 void main()
11 {
12 float height_full = aWorldCo.y;
13 float height_water = height_full;
14
15 if( height_water > (g_water_plane.y * g_water_plane.w) + 2.0 )
16 height_water = -99999.9;
17
18 FragColor = vec4( height_full, height_water, 0.0, 0.0 );
19 }