ioquake / ioq3

The ioquake3 community effort to continue supporting/developing id's Quake III Arena
https://www.ioquake3.org/
GNU General Public License v2.0
2.34k stars 523 forks source link

OpenGL2: Fix applying tcMod turb #633

Closed zturtleman closed 5 months ago

zturtleman commented 5 months ago

Shader stage tcMods for matrix and turbulent (sine) effects need to be applied in order for turb to be correct and all tcMod turb need to be applied instead of only the last one.

Quake 3's textures/liquids/slime1 had tcMod turb and then tcMod scale. OpenGL2 applied the matrix first and then turb which had the wrong result.

Fixes https://github.com/ioquake/ioq3/issues/343.