Added declaration in the shader that was missing

This commit is contained in:
Magnus Norddahl 2016-09-16 15:05:16 -04:00 committed by Christoph Oelckers
parent d99d43aeba
commit f2a3b8978d
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@ vec4 ProcessTexel()
{
vec2 texCoord = vTexCoord.st;
vec4 basicColor = getTexel(texCoord);
ivec2 texSize = textureSize(tex, 0);
texCoord.x = float( int(texCoord.x * texSize.x) ) / texSize.x;
texCoord.y = float( int(texCoord.y * texSize.y) ) / texSize.y;

View file

@ -5,6 +5,7 @@ vec4 ProcessTexel()
{
vec2 texCoord = vTexCoord.st;
vec4 basicColor = getTexel(texCoord);
ivec2 texSize = textureSize(tex, 0);
texCoord.x = float( int(texCoord.x * texSize.x) ) / texSize.x;
texCoord.y = float( int(texCoord.y * texSize.y) ) / texSize.y;