summaryrefslogtreecommitdiff
path: root/slideshow/opengl/rippleFragmentShader.glsl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-11-07 00:37:21 +0200
committerTor Lillqvist <tml@collabora.com>2015-11-07 01:45:48 +0200
commitef04c666591612bb222672de29a15be4515da040 (patch)
tree350f377ca75ba77514895089a3998ea364b058f0 /slideshow/opengl/rippleFragmentShader.glsl
parentd1c91627d9c7d117ee2e680f5c24844f7c4d8515 (diff)
Improve transition shader portability
Use #version 120 explicitly, and adapt the shader shader code accordingly, to use strictly only GLSL 1.20 constructs. Also, use less vertex attribute data in the Vortex vertex shader: We can pack the per-vertex tile x and y index and in-tile vertex index information into one float. Also, the shader can calculate the center of the tile a vertex belongs to based on the knowledge of which tile it is. Now the shader transitions work on OS X, too. Change-Id: I93e8b5069a6d06d2e412ffee322b1eb32805e606
Diffstat (limited to 'slideshow/opengl/rippleFragmentShader.glsl')
-rw-r--r--slideshow/opengl/rippleFragmentShader.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/slideshow/opengl/rippleFragmentShader.glsl b/slideshow/opengl/rippleFragmentShader.glsl
index 83677e4d6390..ac6b8ac37099 100644
--- a/slideshow/opengl/rippleFragmentShader.glsl
+++ b/slideshow/opengl/rippleFragmentShader.glsl
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#version 120
+
#define M_PI 3.1415926535897932384626433832795
uniform sampler2D leavingSlideTexture;