mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
-Fixed occluder rendering, closes #8560
-Ability to smooth out 2D shadow filters
This commit is contained in:
parent
95c248e24f
commit
a8a1f2e2a8
12 changed files with 49 additions and 11 deletions
|
|
@ -916,6 +916,13 @@ void VisualServerCanvas::canvas_light_set_shadow_color(RID p_light, const Color
|
|||
clight->shadow_color = p_color;
|
||||
}
|
||||
|
||||
void VisualServerCanvas::canvas_light_set_shadow_smooth(RID p_light, float p_smooth) {
|
||||
|
||||
RasterizerCanvas::Light *clight = canvas_light_owner.get(p_light);
|
||||
ERR_FAIL_COND(!clight);
|
||||
clight->shadow_smooth = p_smooth;
|
||||
}
|
||||
|
||||
RID VisualServerCanvas::canvas_light_occluder_create() {
|
||||
|
||||
RasterizerCanvas::LightOccluderInstance *occluder = memnew(RasterizerCanvas::LightOccluderInstance);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue