Esempio n. 1
0
        //--------------------------------------------------------------
        #region Creation & Cleanup
        //--------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance of the <see cref="ImageBasedLight"/> class.
        /// </summary>
        /// <param name="texture">The cube map texture.</param>
        public ImageBasedLight(TextureCube texture)
        {
            Color                     = new Vector3F(1);
            DiffuseIntensity          = 1;
            SpecularIntensity         = 1;
            HdrScale                  = 1;
            Shape                     = Shape.Infinite;
            Texture                   = texture;
            _encoding                 = ColorEncoding.Rgbm;
            _blendMode                = 1;
            EnableLocalizedReflection = false;
        }
Esempio n. 2
0
 //--------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageBasedLight"/> class.
 /// </summary>
 /// <param name="texture">The cube map texture.</param>
 public ImageBasedLight(TextureCube texture)
 {
     Color = new Vector3F(1);
       DiffuseIntensity = 1;
       SpecularIntensity = 1;
       HdrScale = 1;
       Shape = Shape.Infinite;
       Texture = texture;
       _encoding = ColorEncoding.Rgbm;
       _blendMode = 1;
       EnableLocalizedReflection = false;
 }