Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GL_LESS for depth func #283

Merged
merged 3 commits into from
Apr 1, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use GL_LESS for depth function
  • Loading branch information
karimnaaji committed Mar 31, 2016
commit fd35a59c06d89e93f67346ba8bb3df785bc0607d
2 changes: 1 addition & 1 deletion src/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ export default class Scene {
// Reset frame state
let gl = this.gl;

RenderState.depth_test.set({ depth_test: depth_test, depth_func: gl.LEQUAL });
RenderState.depth_test.set({ depth_test: depth_test, depth_func: gl.LESS });
RenderState.depth_write.set({ depth_write: depth_write });
RenderState.culling.set({ cull: cull_face, face: gl.BACK });

Expand Down