summaryrefslogtreecommitdiffstats
path: root/libdimension-python
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-08-18 20:17:59 -0600
committerTavian Barnes <tavianator@gmail.com>2011-08-18 20:17:59 -0600
commite1a7c44bf102b5871a74fba8f168427f5fc118b5 (patch)
tree1ea2a51970c61c6d70861efcaaf414cfa686bd39 /libdimension-python
parent9c9fb9d59c2e90fc2bc9066dac514285c9479277 (diff)
downloaddimension-e1a7c44bf102b5871a74fba8f168427f5fc118b5.tar.xz
Handle reflection correctly in the client.
Diffstat (limited to 'libdimension-python')
-rw-r--r--libdimension-python/dimension.pyx7
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)
############