diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-08-18 20:17:59 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-08-18 20:17:59 -0600 |
commit | e1a7c44bf102b5871a74fba8f168427f5fc118b5 (patch) | |
tree | 1ea2a51970c61c6d70861efcaaf414cfa686bd39 /libdimension-python/dimension.pyx | |
parent | 9c9fb9d59c2e90fc2bc9066dac514285c9479277 (diff) | |
download | dimension-e1a7c44bf102b5871a74fba8f168427f5fc118b5.tar.xz |
Handle reflection correctly in the client.
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r-- | libdimension-python/dimension.pyx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx index c219f74..673dc50 100644 --- a/libdimension-python/dimension.pyx +++ b/libdimension-python/dimension.pyx @@ -764,8 +764,11 @@ cdef class Reflection(Finish): """ if max is None: max = min - self._finish.reflection = dmnsn_new_basic_reflection(Color(min)._c, - Color(max)._c, + + # Use sRGB value because Reflection(0.5) should really mean "reflect half + # the light" + self._finish.reflection = dmnsn_new_basic_reflection(Color(min)._sRGB, + Color(max)._sRGB, falloff) ############ |