Fixed typo causing compilation error on iOS

Corrected inversion of skybox on OSX

--HG--
branch : nfb
This commit is contained in:
2014-01-25 18:43:34 -08:00
parent d906f67f76
commit 77550118f0
2 changed files with 3 additions and 3 deletions

View File

@@ -42,8 +42,8 @@ uniform mediump vec4 viewport;
void main()
{
gl_Position = vec4(vertex_position.xy, 1.0, 1.0);
vec4 t = inv_mvp_matrix_no_translate * vec4(vertex_position.xy, 1.0, 1.0);
t /= t.w;
t *= 1.0 / t.w;
texCoord = vec3(t);
}