summaryrefslogtreecommitdiffstats
path: root/libdimension/sky_sphere.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-12 14:09:46 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-12 14:09:46 -0400
commitb6d6b32a6f02965e1d088adaa6a0e051d620b878 (patch)
treec14af77cd111e37ac8cfb8b4cacf5e2229266ccf /libdimension/sky_sphere.c
parent167fe4ff63713d7267eb1f11651e969b0dc108f8 (diff)
downloaddimension-b6d6b32a6f02965e1d088adaa6a0e051d620b878.tar.xz
Fix up translucency semantics and API.
Diffstat (limited to 'libdimension/sky_sphere.c')
-rw-r--r--libdimension/sky_sphere.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdimension/sky_sphere.c b/libdimension/sky_sphere.c
index 9643feb..0ea5fa3 100644
--- a/libdimension/sky_sphere.c
+++ b/libdimension/sky_sphere.c
@@ -58,14 +58,13 @@ dmnsn_initialize_sky_sphere(dmnsn_sky_sphere *sky_sphere)
dmnsn_color
dmnsn_sky_sphere_color(const dmnsn_sky_sphere *sky_sphere, dmnsn_vector d)
{
- dmnsn_color color = dmnsn_black;
- color.trans = 1.0;
+ dmnsn_color color = dmnsn_clear;
DMNSN_ARRAY_FOREACH (const dmnsn_pigment **, pigment, sky_sphere->pigments) {
dmnsn_pigment_fn *pigment_fn = (*pigment)->pigment_fn;
if (pigment_fn) {
dmnsn_color sky = pigment_fn(*pigment, d);
- color = dmnsn_color_add(dmnsn_color_filter(color, sky), sky);
+ color = dmnsn_apply_filter(color, sky);
}
}