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

Possible performance save. #67

Open
mtwoodard opened this issue Feb 6, 2019 · 0 comments
Open

Possible performance save. #67

mtwoodard opened this issue Feb 6, 2019 · 0 comments

Comments

@mtwoodard
Copy link
Owner

I've been thinking creating another shader so that we can separate our local and global passes. This would without a doubt lead to a performance increase as it would remove a lot of the if else statements that are currently in our code. Essentially we would render to a depth texture on our first pass then test that against the second pass and take the closer fragment.

Given that our lighting is dependent on both local and global we'd likely have to figure out a new way to calculate it. I haven't looked into it much but we might be able to defer this to a third final pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant