UI Toolkit world space UI is not affected by lighting

I made some UI Toolkit World Space UI panels that are like Pictures on Walls.
But they stand out, aka are much too bright, because the world space lighting seems not to affect the UI panels.

Is there a a way to configure that?
It looks really strange this way.

We don’t provide a lit shader yet. We intend to implement it but we cannot share an ETA at this time. In the meantime, there are two possible workarounds:

  • Render your UI to a Render Texture and draw it with a quad in the scene with a regular lit transparent shader.
  • Starting with 6.3, you can create custom shaders for UI Toolkit. You could implement a simple forward lit shader where the lighting is defined by material properties.
  • My UI has Buttons and stuff and on a render Texture you cannot click
  • As I read it the custom shaders in 6.3 only work with URP. But I use HDRP in my game

:frowning:

You can remap the input. Some did it to achieve simili-world-space before we had any support for it.

First, I’d like to note that we intend to have proper support for HDRP in the short term. Don’t tell anyone, but you might be able to use a UI custom shader created for the Universal target in HDRP because the shader we generate is currently unlit and is thus not very URP-specific. I just did a quick test and didn’t get any pink, but haven’t tested in a build. Of course there might be some URP-specific nodes that you won’t be able to use with HDRP though. Also it means that you’d need to add universal package to your project even though you don’t actually use that pipeline. If you try it out, let us know how it turned out.