mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- swapped order of matrix application.
Model rotation must come before view rotation, this just never showed up because EDuke32 doesn't have both non-identity at the same time.
This commit is contained in:
parent
7a5f60e14d
commit
57a455d6cb
1 changed files with 2 additions and 4 deletions
|
@ -19,13 +19,11 @@ in vec4 i_texCoord;
|
|||
in vec4 i_color;
|
||||
|
||||
|
||||
const float c_zero = 0.0;
|
||||
const float c_one = 1.0;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 vertex = u_rotMatrix * i_vertPos;
|
||||
vec4 eyeCoordPosition = u_modelMatrix * vertex;
|
||||
vec4 vertex = u_modelMatrix * i_vertPos;
|
||||
vec4 eyeCoordPosition = u_rotMatrix * vertex;
|
||||
v_eyeCoordPosition = eyeCoordPosition;
|
||||
gl_Position = u_projectionMatrix * eyeCoordPosition;
|
||||
|
||||
|
|
Loading…
Reference in a new issue