예제 #1
0
파일: Light.cs 프로젝트: anikan/LeafMeAlone
        /// <summary>
        /// copy from another LightParameter to this
        /// </summary>
        /// <param name="other"> copy from another light params to this </param>
        public void Copy(LightParameters other)
        {
            position.Copy(other.position);
            intensities.Copy(other.intensities);
            coneDirection.Copy(other.intensities);

            attenuation        = other.attenuation;
            ambientCoefficient = other.ambientCoefficient;
            coneAngle          = other.coneAngle;
            exponent           = other.exponent;
            type            = other.type;
            attenuationType = other.attenuationType;
            status          = other.status;
        }