2D: Fix light shader accessing TEXTURE_PIXEL_SIZE

(cherry picked from commit b3694662a2)
This commit is contained in:
Stuart Carnie
2025-03-05 18:46:20 +11:00
committed by Rémi Verschelde
parent f6791c0c83
commit 4248781085

View File

@ -306,6 +306,7 @@ vec4 light_compute(
vec2 screen_uv, vec2 screen_uv,
vec2 uv, vec2 uv,
vec4 color, bool is_directional) { vec4 color, bool is_directional) {
const InstanceData draw_data = instances.data[instance_index];
vec4 light = vec4(0.0); vec4 light = vec4(0.0);
vec3 light_direction = vec3(0.0); vec3 light_direction = vec3(0.0);