io: make ClearColor and FogColor Vec4f instead of 3
This commit is contained in:
@ -52,7 +52,8 @@ func main() {
|
||||
game := game.NewGame()
|
||||
game.Init(win)
|
||||
|
||||
gio.ClearColor = itype.Vec3f{0.6, 0.8, 1.0}
|
||||
gio.ClearColor = itype.Vec4f{0.6, 0.8, 1.0, 1.0}
|
||||
gio.FogColor = itype.Vec4f{0.6, 0.8, 1.0, 1.0}
|
||||
gl.ClearColor(0.6, 0.8, 1.0, 1)
|
||||
gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)
|
||||
win.SwapBuffers()
|
||||
|
Reference in New Issue
Block a user