lib/gamnit depth: make colors in SmoothMaterial writable
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 21 Jan 2016 19:30:44 +0000 (14:30 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 25 Jan 2016 16:54:33 +0000 (11:54 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/depth/more_materials.nit

index 27bdd9a..52191c3 100644 (file)
@@ -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