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

Adding shader debug #14

Merged
merged 2 commits into from
Nov 28, 2019
Merged

Adding shader debug #14

merged 2 commits into from
Nov 28, 2019

Conversation

SaFrMo
Copy link
Contributor

@SaFrMo SaFrMo commented Sep 27, 2019

Hey again! I'm using this library some more and ran into a shader compilation error that took a while to track down:

Screen Shot 2019-09-27 at 12 36 52 PM

So I added a debug option to log shader compilation errors:

Screen Shot 2019-09-27 at 12 37 04 PM

The only new property of the Renderer is this:

const renderer = new Phenomenon({
    debug: true
})

debug is false by default, so I added some documentation for this feature as well. Thanks for the excellent work and let me know if there's anything I should change!

@vaneenige vaneenige merged commit 3cc0ce8 into vaneenige:master Nov 28, 2019
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

Successfully merging this pull request may close these issues.

2 participants