Skip to content

Commit 3e0b73e

Browse files
committed
use a different blending algorithm
1 parent ccfc431 commit 3e0b73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ function createScene(options) {
747747
//Render transparent pass
748748
gl.enable(gl.BLEND)
749749
gl.blendEquation(gl.FUNC_ADD)
750-
gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA)
750+
gl.blendFunc(gl.ONE_MINUS_DST_ALPHA, gl.ONE_MINUS_SRC_ALPHA)
751751
gl.colorMask(true, true, true, true)
752752
gl.depthMask(false)
753753
gl.clearColor(0,0,0,0)

0 commit comments

Comments
 (0)