From 4322f194ed3ac28414be83006198b13ac7d66bb5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 21 Jan 2016 14:30:44 -0500 Subject: [PATCH] lib/gamnit depth: make colors in SmoothMaterial writable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/depth/more_materials.nit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gamnit/depth/more_materials.nit b/lib/gamnit/depth/more_materials.nit index 27bdd9a..52191c3 100644 --- a/lib/gamnit/depth/more_materials.nit +++ b/lib/gamnit/depth/more_materials.nit @@ -29,13 +29,13 @@ class SmoothMaterial [1.0, 1.0, 1.0, 1.0]) # Ambient color, always visible - var ambient_color: Array[Float] + var ambient_color: Array[Float] is writable # Diffuse color when covered by a light source - var diffuse_color: Array[Float] + var diffuse_color: Array[Float] is writable # Specular color affecting reflections - var specular_color: Array[Float] + var specular_color: Array[Float] is writable redef fun draw(actor, model) do -- 1.7.9.5