Fixed post vertex shader projection calculation for glsl<1.5

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10139 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent fada1b5b90
commit 34ab69cef9
  1. 3
      engine/src/core-effects/Common/MatDefs/Post/Post.vert

@ -5,6 +5,7 @@ attribute vec2 inTexCoord;
varying vec2 texCoord;
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;
}
Loading…
Cancel
Save