mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Apply scroll offset the x coordinate and not to y.
When applied to y SURF_FLOWING textures are scrolled into the wrong direction. I guess that in GL1 the offset is also applied to x. This fixes issue #186.
This commit is contained in:
parent
df85228ba4
commit
dd007f340a
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ static const char* vertexSrc3DlmFlow = MULTILINE_STRING(
|
|||
|
||||
void main()
|
||||
{
|
||||
passTexCoord = texCoord + vec2(0, scroll);
|
||||
passTexCoord = texCoord + vec2(scroll, 0);
|
||||
passLMcoord = lmTexCoord;
|
||||
vec4 worldCoord = transModel * vec4(position, 1.0);
|
||||
passWorldCoord = worldCoord.xyz;
|
||||
|
|
Loading…
Reference in a new issue