Added gizmo to Directional&Spotlight lights, also fixed direction calculations for ProceduralSky

This commit is contained in:
Antoine Pilote
2024-07-28 12:29:21 -04:00
parent eb00ac5274
commit 2653343f56
5 changed files with 308 additions and 282 deletions

View File

@@ -276,12 +276,9 @@ void main()
if (true)
{
vec3 L = normalize(u_DirectionalLight.Direction);
vec3 L = normalize(-u_DirectionalLight.Direction);
float attenuation = 1.0f;
L = normalize(u_DirectionalLight.Direction);
if(u_DirectionalLight.Shadow > 0.1f)
{
shadow += ShadowCalculation(worldPos, N);