Skip to content

[WIP] Added a debug view system #545

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

adriengivry
Copy link
Member

@adriengivry adriengivry commented May 20, 2025

Description

  • Added a debug view system, including:
    • Albedo
    • Metallic
    • Roughness
    • AO
    • Normal
    • UV
    • Depth
    • Wireframe

Each debug view only applies to shaders declaring the associated pass (ALBEDO_PASS, METALLIC_PASS, etc.), except for the wireframe one, that can apply to virtually anything.

Related Issue(s)

Fixes #148

Limitations

  • Increases the complexity of the standard shader (many new passes), however many of these passes could be useful for a future deferred pipeline
  • Requires render features to be able to modify a drawable after it has been submitted (potentially poor design)
  • Affect any pass (even picking/outline), which introduces visual artifacts

To-Do

  • Add debug passes to the other shaders (unlit, atmosphere, skysphere)
  • Implement a fallback solution if a debug pass doesn't exist on a custom shader
  • Improve UI (toolbar)

Review Guidance

This needs more work to be viable.

Screenshots/GIFs

OvEditor_uur00DkGMp.mp4

@adriengivry adriengivry self-assigned this May 20, 2025
@adriengivry adriengivry added QoL Quality of Life : Something that can improve users productivity Editor Something relative with the editor Graphics Graphical feature labels May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Editor Something relative with the editor Graphics Graphical feature QoL Quality of Life : Something that can improve users productivity
Development

Successfully merging this pull request may close these issues.

Debug View system
1 participant