Use CreateRotationY instead of the deprecated RotateY.
This commit is contained in:
parent
6c9eb1dbf2
commit
ba7f7ea6eb
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ void main(void)
|
|||
|
||||
protected override void OnUpdateFrame(FrameEventArgs e)
|
||||
{
|
||||
Matrix4 rotation = Matrix4.RotateY((float)e.Time);
|
||||
Matrix4 rotation = Matrix4.CreateRotationY((float)e.Time);
|
||||
Matrix4.Mult(ref rotation, ref modelviewMatrix, out modelviewMatrix);
|
||||
GL.UniformMatrix4(modelviewMatrixLocation, false, ref modelviewMatrix);
|
||||
|
||||
|
|
Loading…
Reference in a new issue