mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add a shadow opacity property to Light3D
This can be used to make shadows translucent for a specific light. The light distance fade system also uses this to smoothly fade the shadow when the light fade transition distance is greater than 0.
This commit is contained in:
parent
f85a816965
commit
baaa7503c7
18 changed files with 65 additions and 36 deletions
|
|
@ -495,7 +495,7 @@ struct LightData { //this structure needs to be as packed as possible
|
|||
mediump float cone_attenuation;
|
||||
mediump float cone_angle;
|
||||
mediump float specular_amount;
|
||||
bool shadow_enabled;
|
||||
mediump float shadow_opacity;
|
||||
};
|
||||
#ifndef DISABLE_LIGHT_OMNI
|
||||
layout(std140) uniform OmniLightData { // ubo:5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue