diff options
author | Ton Roosendaal <ton@blender.org> | 2008-09-21 20:04:33 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-09-21 20:04:33 +0400 |
commit | afe851b6d194ad93f85a66ea5866a3709708089d (patch) | |
tree | 00ced6e9126d6c5e597be1c4b9d748fc59b8c590 /source/blender/render/intern/include/sunsky.h | |
parent | 1c29d02305685a942742846c757775800202a52a (diff) |
Sunsky / Atmoshphere:
- Added blending mode and factor option, so it's more clear and
controllable what happens with it. Also nice for crazy effects
of course!
- Preview render now shows preview for it too
On the todos:
- have this in World buttons (as well) for quicker sky setups
- review math of color clamping and scaling, this is definitely
not good... but a fix will make old files look very different.
Diffstat (limited to 'source/blender/render/intern/include/sunsky.h')
-rw-r--r-- | source/blender/render/intern/include/sunsky.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/render/intern/include/sunsky.h b/source/blender/render/intern/include/sunsky.h index c61a637269a..c5e547097d2 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; + short effect_type, skyblendtype; float turbidity; float theta, phi; @@ -53,7 +53,8 @@ typedef struct SunSky float sun_brightness; float sun_size; float backscattered_light; - + float skyblendfac; + float atm_HGg; float atm_SunIntensity; @@ -84,7 +85,8 @@ typedef struct SunSky * back_scatter, controls back scatter light * */ void InitSunSky(struct SunSky *sunsky, float turb, float *toSun, float horizon_brightness, - float spread,float sun_brightness, float sun_size, float back_scatter); + float spread,float sun_brightness, float sun_size, float back_scatter, + float skyblendfac, short skyblendtype); /** * GetSkyXYZRadiance: |