public SolidObject(BaseMaterial material, TriangleMeshInfo mesh) : base(mesh) { if (mesh == null) { throw new ArgumentNullException("mesh"); } this.Material = (SolidMaterial)material; }
public LightsourceObject(BaseMaterial material, BaseLight light) : base(null) { this.Light = light; this.Material = (LightMaterial) material; }