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

Add FBO support #3

Open
jkuziel opened this issue Jan 11, 2016 · 0 comments
Open

Add FBO support #3

jkuziel opened this issue Jan 11, 2016 · 0 comments

Comments

@jkuziel
Copy link
Owner

jkuziel commented Jan 11, 2016

An FBO will be needed to support mesh objects on screen in order to properly clip the objects behind terrain.

  1. Draw objects to FBO, color renderbuffer / depth texture
  2. Bind FBO depth texture to fragment shader
  3. Do not draw rays (alpha = 0) that hit the depth buffer and do not hit terrain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant