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:
Yamagi Burmeister 2017-04-24 14:49:45 +02:00
parent df85228ba4
commit dd007f340a

View file

@ -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;