From 333c5c60cd983614cc0ab027eb0d89a4392b8aef Mon Sep 17 00:00:00 2001 From: Nehon Date: Mon, 31 Mar 2014 06:53:05 +0200 Subject: [PATCH] Fixed wrong swizzle in ssao.frag --- jme3-effects/src/main/resources/Common/MatDefs/SSAO/ssao.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-effects/src/main/resources/Common/MatDefs/SSAO/ssao.frag b/jme3-effects/src/main/resources/Common/MatDefs/SSAO/ssao.frag index 2bdb9e5f5..c9a9c0ff2 100644 --- a/jme3-effects/src/main/resources/Common/MatDefs/SSAO/ssao.frag +++ b/jme3-effects/src/main/resources/Common/MatDefs/SSAO/ssao.frag @@ -34,7 +34,7 @@ vec3 getNormal(in vec2 uv){ } vec2 getRandom(in vec2 uv){ - vec4 rand=texture2D(m_RandomMap,g_Resolution.zw * uv / 128.0 * 3.0)*2.0 -1.0; + vec4 rand=texture2D(m_RandomMap,g_Resolution * uv / 128.0 * 3.0)*2.0 -1.0; return normalize(rand.xy); }