Blender Git Commit Log

Git Commits -> Revision 9de0922

Revision 9de0922 by Szymon Ulatowski (master)
July 9, 2020, 14:55 (GMT)
EEVEE: Implement the missing Sky texture

I'm not sure if the Sky was deliberately left out or was just waiting for a
better moment, but so many I was disappointed that Sky in EEVEE is
completely white.

There are already 2 implementations (osl and gpu) so this is the third one.
Looking at other cases it seems that we are not supposed to share sources
between cycles and the rest? So the new util_sky_model files are just
copies of what is already in cycles, except that the data file uses the RGB
variant of the Hosek/Wilkie model, because we output RGB anyway (but can be
easily changed to XYZ if desired - the results are nearly identical).
I am not sure if it is okay to pass 3*9 float values as 3 mat4 uniforms (I
wanted to use mat3 but it does not work).
Also, should I cache the sky model data between renders if the parameters
do not change?

Reviewed By: fclem, brecht

Differential Revision: https://developer.blender.org/D7108

Commit Details:

Full Hash: 9de09220fc5fcae72bba203c641f67e75eb7ebc5
Parent Commit: 42c99ec
Committed By: Clément Foucault
Lines Changed: +5532, -5048

6 Added Paths:

/intern/sky/CMakeLists.txt (+35, -0) (View)
/intern/sky/include/sky_model.h (+456, -0) (View)
/intern/sky/source/sky_float3.h (+157, -0) (View)
/intern/sky/source/sky_model.cpp (+345, -0) (View)
/intern/sky/source/sky_model_data.h (+3843, -0) (View)
/intern/sky/source/sky_nishita.cpp (+367, -0) (View)

4 Deleted Paths:

/intern/cycles/util/util_sky_model.cpp (+0, -349)
/intern/cycles/util/util_sky_model.h (+0, -453)
/intern/cycles/util/util_sky_model_data.h (+0, -3847)
/intern/cycles/util/util_sky_nishita.cpp (+0, -371)

11 Modified Paths:

/intern/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/app/CMakeLists.txt (+1, -1) (Diff)
/intern/cycles/render/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/render/image_sky.cpp (+13, -12) (Diff)
/intern/cycles/render/nodes.cpp (+6, -5) (Diff)
/intern/cycles/util/CMakeLists.txt (+0, -4) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_tex_sky.glsl (+147, -1) (Diff)
/source/blender/imbuf/IMB_colormanagement.h (+1, -0) (Diff)
/source/blender/imbuf/intern/colormanagement.c (+5, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+2, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.c (+151, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021