From 8c84777c46bf0863b2fc01a547de8ba87805f5c8 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 26 Oct 2015 12:52:22 +0200 Subject: Actually, the permTexture is 256*256 pixels Change-Id: Ia32c98d8162f31a8ee0b0d0c1301ca204c9c3c87 --- slideshow/opengl/dissolveFragmentShader.glsl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'slideshow/opengl') diff --git a/slideshow/opengl/dissolveFragmentShader.glsl b/slideshow/opengl/dissolveFragmentShader.glsl index adc4e163d71a..c6e80e2a6931 100644 --- a/slideshow/opengl/dissolveFragmentShader.glsl +++ b/slideshow/opengl/dissolveFragmentShader.glsl @@ -38,9 +38,7 @@ float snoise(vec2 P) { } void main() { - // No idea why the multiplication by 10 (and not 16, which would seem more logical to me, as - // the permTexture is 16*16 pixels in size). - float sn = snoise(10.0*v_texturePosition); + float sn = snoise(256*v_texturePosition); if( sn < time) gl_FragColor = texture2D(enteringSlideTexture, v_texturePosition); else -- cgit