X-Git-Url: http://nitlanguage.org diff --git a/lib/gamnit/depth/more_materials.nit b/lib/gamnit/depth/more_materials.nit index b77c85e..e8c6746 100644 --- a/lib/gamnit/depth/more_materials.nit +++ b/lib/gamnit/depth/more_materials.nit @@ -18,15 +18,17 @@ module more_materials intrude import depth_core intrude import flat -# Simple material with static colors used for debugging or display abstract objects -class SmoothMaterial - super Material - +redef class Material # Get the default blueish material - init default do init( + new do return new SmoothMaterial( [0.0, 0.0, 0.3, 1.0], [0.0, 0.0, 0.6, 1.0], [1.0, 1.0, 1.0, 1.0]) +end + +# Simple material with static colors used for debugging or display abstract objects +class SmoothMaterial + super Material # Ambient color, always visible var ambient_color: Array[Float] is writable