Use the original canvas to calculate light positioning
This commit is contained in:
parent
6061d1bfd8
commit
2d7db30f0d
3 changed files with 3 additions and 5 deletions
|
|
@ -349,7 +349,7 @@ void RendererViewport::_draw_viewport(Viewport *p_viewport) {
|
|||
Transform2D scale;
|
||||
scale.scale(cl->rect_cache.size);
|
||||
scale.columns[2] = cl->rect_cache.position;
|
||||
cl->light_shader_xform = cl->xform * scale;
|
||||
cl->light_shader_xform = xf * cl->xform * scale;
|
||||
if (cl->use_shadow) {
|
||||
cl->shadows_next_ptr = lights_with_shadow;
|
||||
if (lights_with_shadow == nullptr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue