Skip to content

Comments

Add debug utilities to help debug dynamic lights and small fixes#1908

Open
DolceTriade wants to merge 4 commits intoDaemonEngine:masterfrom
DolceTriade:debuglight
Open

Add debug utilities to help debug dynamic lights and small fixes#1908
DolceTriade wants to merge 4 commits intoDaemonEngine:masterfrom
DolceTriade:debuglight

Conversation

@DolceTriade
Copy link
Contributor

  • Add cvars to create a debug spotlight and a debug sun light.
  • Ensure that sun lights affect all light tiles
  • Add a debug cvar to help visualize spot lights and point lights
  • Stop segfaulting when running glsl_restart

This adds a debug cvar to draw a tetrahedron (similar to what you get
when yuou enable r_showSkeleton) in the direction of a spot light or in
6 directions for an omnilight that is proportional to the radius of the
light.

This makes it easier to visualize dynamic lights and see what they
should be doing, what direction they are intended to point, etc.

Also, while here, normalize spotlight direction.
Makes it easier to test dynamic lights.
Using git bisect, e497a08 introduces a
window where globalUBOProxy can be null after glsl_restart. Therefore,
also return early, if glboalUBOProxy is null. It will be instantiated
later.

Further, only initialize world shaders *AFTER* all shader storage has
been initiialized.
Directional lights should affect all light tiles, so automatically add
them to every tile since we don't populate the radius.

Also add some cvars to allow adding a debug sun.
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