-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Debug primitive drawing API #1875
Conversation
…th duration, depth test, layer controls. (#1852) - new DebugDraw with advanced debug primitive rendering - added static constant colors in Color class - improved low level line rendering to handle depth testing better - DebugDraw engine example
var i; | ||
for (i = 0; i < lines.length; i++) { | ||
if (lines[i].isAlive) { | ||
pc.app._addLines(lines[i].points, lines[i].colors, lines[i].options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
App doesn't have an _allLines function... what am I missing?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's in immediate.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eeeeuw immediate assigns to Application.prototype! (mindblownemoji)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this could definitely do with being tidied up. I don't think it's necessary for this PR to address this problem though. But @mvaligursky, maybe add an issue to refactor this part of the engine?
Added public DebugDraw interface for rendering of debug primitives with duration, depth test, layer controls.
Fixes #1852