EEVEE: Replace angle computation in shadow code with cosine

The tangent computation was not needed. Also precompute the
cosine of the shadow angle to avoid implementation dependant
result.

Pull Request: https://projects.blender.org/blender/blender/pulls/151739
This commit is contained in:
Clément Foucault 2025-12-17 14:45:58 +01:00 • committed by Clément Foucault
parent 2ae058812c
commit 259267952f
5 changed files with 14 additions and 10 deletions

View file

@ -40,6 +40,8 @@ BLOCKLIST = [
"light_path_is_shadow_ray.blend",
# Blocked as the test seems to alternate between two different states
"light_path_is_diffuse_ray.blend",
# Blocked due to stochastic diffuse/transmission layering resulting in non-deterministic surfel lighting.
"principled_bsdf_transmission.blend",
]
BLOCKLIST_METAL = [
@ -61,11 +63,6 @@ BLOCKLIST_VULKAN = [
]
BLOCKLIST_INTEL = [
# Blocked due to large differences in dithered surfaces and shadows.
"transparency_blended.blend",
"transparency_dithered.blend",
# Blocked due to differences in shadow edges (to be investigated).
"shadow_resolution_scale.blend"
]