diff --git a/src/tracer/model/Sphere.java b/src/tracer/model/Sphere.java index bab169c..278c192 100644 --- a/src/tracer/model/Sphere.java +++ b/src/tracer/model/Sphere.java @@ -88,6 +88,7 @@ public Sphere(Vector3 center, float radius) { * @param material the sphere material */ public Sphere(Vector3 center, float radius, Material material) { + super(material); this.center = Objects.requireNonNull(center, "The center can not be null.").copy(); if (radius <= 0) { throw new IllegalArgumentException("The radius should be greater than 0.");