From 5536f5f824e094a008ae990ac739bf57248fcd49 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Tue, 22 Jan 2013 23:15:22 +0000 Subject: [PATCH] Also Fixed FXAA vertex shader projection calculation for glsl<1.5 git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10140 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core-effects/Common/MatDefs/Post/FXAA.vert | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/core-effects/Common/MatDefs/Post/FXAA.vert b/engine/src/core-effects/Common/MatDefs/Post/FXAA.vert index 2390384a7..21a2ae45f 100644 --- a/engine/src/core-effects/Common/MatDefs/Post/FXAA.vert +++ b/engine/src/core-effects/Common/MatDefs/Post/FXAA.vert @@ -10,7 +10,8 @@ varying vec2 texCoord; varying vec4 posPos; void main() { - gl_Position = inPosition * 2.0 - 1.0; //vec4(pos, 0.0, 1.0); + vec2 pos = (g_WorldViewProjectionMatrix * inPosition).xy; + gl_Position = vec4(pos, 0.0, 1.0); texCoord = inTexCoord; vec2 rcpFrame = vec2(1.0) / g_Resolution; posPos.xy = inTexCoord.xy;