diff options
Diffstat (limited to 'tests/manual/nodetypes_ng/wobble_legacy_gl.frag')
-rw-r--r-- | tests/manual/nodetypes_ng/wobble_legacy_gl.frag | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/manual/nodetypes_ng/wobble_legacy_gl.frag b/tests/manual/nodetypes_ng/wobble_legacy_gl.frag new file mode 100644 index 0000000000..2961ca5f50 --- /dev/null +++ b/tests/manual/nodetypes_ng/wobble_legacy_gl.frag @@ -0,0 +1,10 @@ +uniform sampler2D source; +uniform highp float amplitude; +uniform highp float frequency; +uniform highp float time; +uniform lowp float qt_Opacity; +varying highp vec2 qt_TexCoord0; +void main() { + highp vec2 p = sin(time + frequency * qt_TexCoord0); + gl_FragColor = texture2D(source, qt_TexCoord0 + amplitude * vec2(p.y, -p.x)) * qt_Opacity; +} |