From: Alexis Laferrière Date: Thu, 21 Jan 2016 19:30:44 +0000 (-0500) Subject: lib/gamnit depth: make colors in SmoothMaterial writable X-Git-Tag: v0.8~7^2~11 X-Git-Url: http://nitlanguage.org lib/gamnit depth: make colors in SmoothMaterial writable Signed-off-by: Alexis Laferrière --- 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