mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 01:55:19 -04:00
Use Vector4 instead of float[] in SetAmbientColour.
This commit is contained in:
parent
8cb927ae0d
commit
fad0a17199
@ -261,9 +261,9 @@ namespace ClassicalSharp.GraphicsAPI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SetAmbientColour( FastColour col ) {
|
public unsafe override void SetAmbientColour( FastColour col ) {
|
||||||
float[] colRGBA = { col.R / 255f, col.G / 255f, col.B / 255f, 1f };
|
Vector4 colRGBA = new Vector4( col.R / 255f, col.G / 255f, col.B / 255f, 1 );
|
||||||
GL.LightModel( LightModelParameter.LightModelAmbient, colRGBA );
|
GL.LightModel( LightModelParameter.LightModelAmbient, &colRGBA.X );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Vertex buffers
|
#region Vertex buffers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user