summaryrefslogtreecommitdiff
path: root/slideshow/opengl/vortexFragmentShader.glsl
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>2015-12-21 21:25:34 +0000
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2016-01-05 15:05:48 +0100
commitd886fef25c5978dd4b07fa0e3ce2402874a6c29a (patch)
treeaf65588ed568051a113b5610891ff993c8405c13 /slideshow/opengl/vortexFragmentShader.glsl
parent1d411cad5a7d78ead8cffb5da522f1e0fba31187 (diff)
slideshow: Improve the Vortex transition to match PowerPoint better
Change-Id: I60e0b71d41a726459baeb7e590745d6bfb58e884
Diffstat (limited to 'slideshow/opengl/vortexFragmentShader.glsl')
-rw-r--r--slideshow/opengl/vortexFragmentShader.glsl40
1 files changed, 0 insertions, 40 deletions
diff --git a/slideshow/opengl/vortexFragmentShader.glsl b/slideshow/opengl/vortexFragmentShader.glsl
deleted file mode 100644
index 3e104b2da545..000000000000
--- a/slideshow/opengl/vortexFragmentShader.glsl
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#version 120
-
-uniform sampler2D leavingSlideTexture;
-uniform sampler2D enteringSlideTexture;
-uniform float time;
-varying vec2 v_texturePosition;
-varying float v_textureSelect;
-varying vec3 v_normal;
-
-void main()
-{
- vec3 lightVector = vec3(0.0, 0.0, 1.0);
- float light = abs(dot(lightVector, v_normal));
- vec4 fragment;
-
- if (v_textureSelect == 0)
- {
- fragment = texture2D(leavingSlideTexture, v_texturePosition);
- }
- else
- {
- vec2 pos = v_texturePosition;
- pos.x = 1 - pos.x;
- fragment = texture2D(enteringSlideTexture, pos);
- }
-
- vec4 black = vec4(0.0, 0.0, 0.0, fragment.a);
- gl_FragColor = mix(black, fragment, light);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */