EEVEE: Add sky texture sun disc support

Why:
Feature parity. Cycles has sun disk. EEVEE's atmospheric contribution
was incomplete without one.

How:
Should be pretty self explanatory. Grab the values from the Node.
Compute the values. Sum into the sky RGB. Designed to mimic the
convention Cycles uses. With the exception of the angular distance,
instead using the GLSL helper. Also removed the GUI warning as it was no
longer necessary.
For obvious reasons. The sun would not survive baking into the LUT. So
its summed to the final RGB.

Pull Request: https://projects.blender.org/blender/blender/pulls/163132
This commit is contained in:
avon662 2026-09-16 13:54:46 +02:00 • committed by Clément Foucault
parent f5893e588a
commit 325bb9d27d
17 changed files with 121 additions and 46 deletions

View file

@ -440,7 +440,7 @@ def main():
elif test_dir_name.startswith('principled_bsdf'):
# principled_bsdf_thinfilm_metallic has some weird behavior in reflection of
# black surfaces. to be investigated
report.set_fail_percent(0.09)
report.set_fail_percent(0.098)
# principled_bsdf_dispersion has some difference in the highlights
if gpu_vendor == "AMD":
report.set_fail_threshold(6.0 / 255.0)
@ -466,7 +466,7 @@ def main():
elif test_dir_name.startswith('shader'):
# normal_mapping_light_leak fireflies.
# fresnel_layer_weight high values are accumulated differently on different platform.
report.set_fail_percent(0.2)
report.set_fail_percent(0.215)
if gpu_vendor == "INTEL":
# mix_color uses implementation dependent function.
report.set_fail_percent(0.41)