Use CreateRotationY instead of the deprecated RotateY.

This commit is contained in:
the_fiddler 2009-09-04 13:04:42 +00:00
parent 6c9eb1dbf2
commit ba7f7ea6eb

View file

@ -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);