Skip to content

Commit

Permalink
Flip texture for depth peel example
Browse files Browse the repository at this point in the history
  • Loading branch information
tsherif committed Nov 13, 2018
1 parent f6b5908 commit da1153a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oit-dual-depth-peeling.html
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@
gl.activeTexture(gl.TEXTURE9);
gl.bindTexture(gl.TEXTURE_2D, texture);

gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.REPEAT);
Expand Down

0 comments on commit da1153a

Please sign in to comment.