Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL2: Fix applying tcMod turb #633

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

zturtleman
Copy link
Member

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 #343.

Shader stage tcMods for matrix and turb 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.
@zturtleman zturtleman merged commit 93abc60 into ioquake:main Jan 18, 2024
3 checks passed
@zturtleman zturtleman deleted the opengl2_tcmods branch January 18, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenGL2: tcMod turb + tcMod scale doesn't work correctly
1 participant