OpenGL2: Fix applying tcMod turb
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.
This commit is contained in:
1 parent
5ede35d8dd
commit
93abc60a5b
6 files changed
+190
-77
No files matched your search
@@ -637,8 +637,14 @@ typedef enum
|
||||
|
||||
UNIFORM_ENABLETEXTURES,
|
||||
|
||||
UNIFORM_DIFFUSETEXMATRIX,
|
||||
UNIFORM_DIFFUSETEXOFFTURB,
|
||||
UNIFORM_DIFFUSETEXMATRIX0,
|
||||
UNIFORM_DIFFUSETEXMATRIX1,
|
||||
UNIFORM_DIFFUSETEXMATRIX2,
|
||||
UNIFORM_DIFFUSETEXMATRIX3,
|
||||
UNIFORM_DIFFUSETEXMATRIX4,
|
||||
UNIFORM_DIFFUSETEXMATRIX5,
|
||||
UNIFORM_DIFFUSETEXMATRIX6,
|
||||
UNIFORM_DIFFUSETEXMATRIX7,
|
||||
|
||||
UNIFORM_TCGEN0,
|
||||
UNIFORM_TCGEN0VECTOR0,
|
||||
|
||||
Reference in new issue
Block a user