]> git.tdb.fi Git - libs/gl.git/blob - demos/forestpond/data/fluidsim_bottom.glsl
Implement water simulation and surface shader for forest pond
[libs/gl.git] / demos / forestpond / data / fluidsim_bottom.glsl
1 import msp_interface;
2
3 #pragma MSP stage(vertex)
4 void main()
5 {
6         out float z = vertex.z;
7         gl_Position = clip_eye_matrix*eye_world_matrix*world_obj_matrix*vertex;
8 }
9
10 #pragma MSP stage(fragment)
11 layout(location=0) out float elevation;
12
13 void main()
14 {
15         elevation = z*100.0;
16 }