From e1a7c44bf102b5871a74fba8f168427f5fc118b5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 18 Aug 2011 20:17:59 -0600 Subject: Handle reflection correctly in the client. --- libdimension-python/dimension.pyx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libdimension-python') 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) ############ -- cgit v1.2.3