io: make ClearColor and FogColor Vec4f instead of 3

This commit is contained in:
2022-01-29 22:52:51 +08:00
parent 444697b205
commit 25872b257d
3 changed files with 7 additions and 5 deletions

View File

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