lib/mittsu/lights/hemisphere_light.rb in mittsu-0.1.1 vs lib/mittsu/lights/hemisphere_light.rb in mittsu-0.1.2

- old
+ new

@@ -23,7 +23,16 @@ light.ground_color.copy(@ground_color) light.intensity = @intensity light end + + protected + + def jsonify + data = super + data[:color] = self.color.get_hex + data[:ground_color] = self.ground_color.get_hex + data + end end end