Skip to content

feat(panels): allow a debug visualisation for offscreen textures - #1002

Open
seankmartin wants to merge 4 commits into
google:masterfrom
MetaCell:feat/debug-offscreen-textures
Open

feat(panels): allow a debug visualisation for offscreen textures#1002
seankmartin wants to merge 4 commits into
google:masterfrom
MetaCell:feat/debug-offscreen-textures

Conversation

@seankmartin

Copy link
Copy Markdown
Contributor

I've recently been debugging through some picking and depth buffer interactions, and I thought sharing the debug vis for the offscreen buffers could be helpful for future use. This adds a constant to both the slice view and projection panels that can be independently turned on. It's designed to extend pretty readily, since for example #993 adds a new offscreen buffer for normals. As an example of this vis (top left Color, top right Z, bottom left Pick, bottom right empty):

image image

This could be further improved to show the debugs for each panel better by having a custom shader for each, but that's not likely worth it for the debug vis. If you need to see one panel better you can modify the default shader which is in defineCopyFragmentShader of offscreen.ts. To try it, it has to be built locally since the debug flags are false by default.

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.

1 participant