further tweak water & ssao shaders

This commit is contained in:
2022-02-26 14:05:55 +08:00
parent a71acc22a0
commit 7d7778f53d
3 changed files with 17 additions and 9 deletions

View File

@@ -443,7 +443,7 @@ func (g *Game) Render(win *glfw.Window) {
gl.DepthFunc(gl.LESS)
gl.Enable(gl.CULL_FACE)
gl.Enable(gl.BLEND)
gl.BlendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA)
gl.BlendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA)
gl.BlendEquation(gl.FUNC_ADD)
g.render.water.shader.UseProgram()
g.render.water.shader.BindTextures()