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