Skip to content

Commit b369466

Browse files
committed
2D: Fix light shader accessing TEXTURE_PIXEL_SIZE
1 parent 134da37 commit b369466

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

servers/rendering/renderer_rd/shaders/canvas.glsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ vec4 light_compute(
306306
vec2 screen_uv,
307307
vec2 uv,
308308
vec4 color, bool is_directional) {
309+
const InstanceData draw_data = instances.data[instance_index];
309310
vec4 light = vec4(0.0);
310311
vec3 light_direction = vec3(0.0);
311312

0 commit comments

Comments
 (0)