Added a nicer toString() to DirectionalLight.

This commit is contained in:
Paul Speed 2018-11-20 03:29:20 -05:00
parent 2b1c3d22e8
commit c2fe803f53

View File

@ -132,6 +132,11 @@ public class DirectionalLight extends Light {
return Type.Directional;
}
@Override
public String toString() {
return getClass().getSimpleName() + "[name=" + name + ", direction=" + direction + ", color=" + color + ", enabled=" + enabled + "]";
}
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);