pythongame-engineshadowlightingursina

Ursina Python Engine: Question about the Lighting System


I saw this Screenshot on the official Ursina Engine Website and wanted to ask if this is even possible. If so, how?

I would appreciate any information that could be helpful.

I played around with the lighting options for a few hours, but the only thing I got working was shadows with the directional light. Additionally, I wasn't able to find any more information in the Official Documentation.


Solution

  • The screenshot you linked is actually from the projector_shader in ursina/shaders/projector_shader.py. It's not actually light, but is in this example used to give the illusion of light by using a "vignette" texture. There are no shadows for example. There's no vertical falloff either.