mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Remove some old code
This commit is contained in:
9
main.go
9
main.go
@ -352,15 +352,6 @@ func (g *OurGame) Render() {
|
|||||||
|
|
||||||
func (g *OurGame) DrawSkybox() {
|
func (g *OurGame) DrawSkybox() {
|
||||||
|
|
||||||
// glDepthMask(GL_FALSE);
|
|
||||||
// skyboxShader.use();
|
|
||||||
// // ... set view and projection matrix
|
|
||||||
// glBindVertexArray(skyboxVAO);
|
|
||||||
// glBindTexture(GL_TEXTURE_CUBE_MAP, cubemapTexture);
|
|
||||||
// glDrawArrays(GL_TRIANGLES, 0, 36);
|
|
||||||
// glDepthMask(GL_TRUE);
|
|
||||||
// // ... draw rest of the scene
|
|
||||||
|
|
||||||
gl.Disable(gl.CULL_FACE)
|
gl.Disable(gl.CULL_FACE)
|
||||||
gl.DepthFunc(gl.LEQUAL)
|
gl.DepthFunc(gl.LEQUAL)
|
||||||
skyboxMesh.Buf.Bind()
|
skyboxMesh.Buf.Bind()
|
||||||
|
|||||||
Reference in New Issue
Block a user