SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

fixed spotlight shadow issue due to incorrect basis reconstruction (#24238)

# Objective

Fixes #24232 

## Solution

The basis vector construction code in the shader was no longer in sync
with the rust code. I updated the shader to match the rust code:
https://github.com/bevyengine/bevy/blob/2002a188e0e106eacf56b854dfaff4eca8839584/crates/bevy_light/src/spot_light.rs#L172-L183

## Testing

Run the example code posted in #24232 

## Showcase

Before:
<img width="1891" height="2124" alt="screenshot-2026-05-10_17-43-50"
src="https://github.com/user-attachments/assets/31f93820-66c6-4ce9-8c4e-ccdfbb89fd3d"
/>

After:

<img width="1891" height="2085" alt="screenshot-2026-05-10_23-34-33"
src="https://github.com/user-attachments/assets/6d400252-2367-400f-a067-bcd944032bad"
/>
J
Jeroen committed
6923407bd2d053994f8a04cf14a99f8da4e6c8b0
Parent: 8335473
Committed by GitHub <noreply@github.com> on 5/21/2026, 2:18:45 PM