-fixed broken lighting in release version of godot for isometric light demo, fixes #1697
This commit is contained in:
parent
21939ce08b
commit
5c6b31c024
8 changed files with 6 additions and 0 deletions
|
|
@ -9452,6 +9452,7 @@ void RasterizerGLES2::canvas_render_items(CanvasItem *p_item_list,int p_z,const
|
|||
|
||||
while(light) {
|
||||
|
||||
|
||||
if (ci->light_mask&light->item_mask && p_z>=light->z_min && p_z<=light->z_max && ci->global_rect_cache.intersects_transformed(light->xform_cache,light->rect_cache)) {
|
||||
|
||||
//intersects this light
|
||||
|
|
@ -9489,6 +9490,7 @@ void RasterizerGLES2::canvas_render_items(CanvasItem *p_item_list,int p_z,const
|
|||
|
||||
}
|
||||
|
||||
|
||||
bool has_shadow = light->shadow_buffer.is_valid() && ci->light_mask&light->item_shadow_mask;
|
||||
|
||||
canvas_shader.set_conditional(CanvasShaderGLES2::USE_SHADOWS,has_shadow);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue