Exemplo n.º 1
0
        public OpaqueMaterial(float index, Color color, float opacity, float?reflectivity = null)
        {
            Color             = color;
            this.reflectivity = reflectivity;
            opaqueObject      = new OpaqueBaseMaterial(index, color, opacity);

            if (reflectivity.HasValue)
            {
                reflectiveBaseMaterial = new ReflectiveBaseMaterial();
            }
        }