From 7ebeceb399002076106333202ec59483fc3ed4ba Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 29 Sep 2008 17:03:24 +0000 Subject: Updated color calculus for sunsky - removed ugly clamping function (it was dividing XYZ based on max of one of the values) - added option to use Exposure, this only works for brightness (Y). results look very pleasant, foggy and hazy results are possible. with exposre==0, no exposure happens for HDR extreme range skies, this is how yafray rendered it. - added menu for choosing color spaces (CIE = modern lcds) Please review! (and yes i know it's still not in World :) --- source/blender/render/intern/include/sunsky.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/render/intern/include/sunsky.h') diff --git a/source/blender/render/intern/include/sunsky.h b/source/blender/render/intern/include/sunsky.h index c5e547097d2..f61338bcf27 100644 --- a/source/blender/render/intern/include/sunsky.h +++ b/source/blender/render/intern/include/sunsky.h @@ -33,7 +33,7 @@ typedef struct SunSky { - short effect_type, skyblendtype; + short effect_type, skyblendtype, sky_colorspace; float turbidity; float theta, phi; @@ -54,6 +54,7 @@ typedef struct SunSky float sun_size; float backscattered_light; float skyblendfac; + float sky_exposure; float atm_HGg; @@ -86,7 +87,7 @@ typedef struct SunSky * */ void InitSunSky(struct SunSky *sunsky, float turb, float *toSun, float horizon_brightness, float spread,float sun_brightness, float sun_size, float back_scatter, - float skyblendfac, short skyblendtype); + float skyblendfac, short skyblendtype, float sky_exposure, float sky_colorspace); /** * GetSkyXYZRadiance: -- cgit v1.2.3