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:
Hugo Locurcio 2022-06-10 12:47:06 +02:00
parent f85a816965
commit baaa7503c7
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
18 changed files with 65 additions and 36 deletions

View file

@ -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