mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 00:21:34 +00:00
Added declaration in the shader that was missing
This commit is contained in:
parent
d99d43aeba
commit
f2a3b8978d
2 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ vec4 ProcessTexel()
|
||||||
{
|
{
|
||||||
vec2 texCoord = vTexCoord.st;
|
vec2 texCoord = vTexCoord.st;
|
||||||
vec4 basicColor = getTexel(texCoord);
|
vec4 basicColor = getTexel(texCoord);
|
||||||
|
ivec2 texSize = textureSize(tex, 0);
|
||||||
|
|
||||||
texCoord.x = float( int(texCoord.x * texSize.x) ) / texSize.x;
|
texCoord.x = float( int(texCoord.x * texSize.x) ) / texSize.x;
|
||||||
texCoord.y = float( int(texCoord.y * texSize.y) ) / texSize.y;
|
texCoord.y = float( int(texCoord.y * texSize.y) ) / texSize.y;
|
||||||
|
|
|
@ -5,6 +5,7 @@ vec4 ProcessTexel()
|
||||||
{
|
{
|
||||||
vec2 texCoord = vTexCoord.st;
|
vec2 texCoord = vTexCoord.st;
|
||||||
vec4 basicColor = getTexel(texCoord);
|
vec4 basicColor = getTexel(texCoord);
|
||||||
|
ivec2 texSize = textureSize(tex, 0);
|
||||||
|
|
||||||
texCoord.x = float( int(texCoord.x * texSize.x) ) / texSize.x;
|
texCoord.x = float( int(texCoord.x * texSize.x) ) / texSize.x;
|
||||||
texCoord.y = float( int(texCoord.y * texSize.y) ) / texSize.y;
|
texCoord.y = float( int(texCoord.y * texSize.y) ) / texSize.y;
|
||||||
|
|
Loading…
Reference in a new issue