Debian Codegraph @

tests/manual/scenegraph_lancelot/data/shared/shaders/wave.vert

raw
1 uniform highp mat4 qt_Matrix;
2 attribute highp vec4 qt_Vertex;
3 attribute highp vec2 qt_MultiTexCoord0;
4 varying highp vec2 qt_TexCoord0;
5
6 void main() {
7 highp vec4 pos = qt_Vertex;
8 pos.x += sin(qt_Vertex.y * 0.02) * 20.;
9 pos.y += sin(qt_Vertex.x * 0.02) * 20.;
10 gl_Position = qt_Matrix * pos;
11 qt_TexCoord0 = qt_MultiTexCoord0;
12 }