//--------------------------------------------------------------
        #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;
        }
Beispiel #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;
 }