slideshow: Add shadows to the Vortex transition

Desktop / LibreOffice - Emmanuel Gil Peyrot [collabora.com] - 9 February 2016 11:02 UTC

These are done using a shadow mapping technique, we render both slides from the point of view of the light, and then do a second pass in which we lower the light of the fragment if some other cube is above it.

Change-Id: I8aaa1428c4481661283bf69b5e56aa4d95fb80dd Reviewed-on: https://gerrit.libreoffice.org/22232

0c14c7b slideshow: Add shadows to the Vortex transition
slideshow/Package_opengl.mk | 1 +
slideshow/opengl/vortexFragmentShader.glsl | 34 +++++
slideshow/opengl/vortexGeometryShader.glsl | 32 ++++-
slideshow/opengl/vortexVertexShader.glsl | 19 ++-
.../OGLTrans/generic/OGLTrans_TransitionImpl.cxx | 132 ++++++++++++++++++--
5 files changed, 200 insertions(+), 18 deletions(-)

Upstream: cgit.freedesktop.org


  • Share