コード例 #1
0
 public Texture2D this[GBufferTypes type]
 {
     get
     {
         if (type == GBufferTypes.FINALIMAGE)
         {
             return this.target;
         }
         else
         {
             ActiveLogger.LogMessage("Wrong Image Type requested", LogLevel.FatalError);
             throw new Exception("wrong type");
         }
     }
 }
コード例 #2
0
 public Texture2D this[GBufferTypes type]
 {
     get
     {
         if (type == GBufferTypes.FINALIMAGE)
         {
             return(this.target);
         }
         else
         {
             ActiveLogger.LogMessage("Wrong Image Type requested", LogLevel.FatalError);
             throw new Exception("wrong type");
         }
     }
 }
コード例 #3
0
        public Microsoft.Xna.Framework.Graphics.Texture2D this[GBufferTypes type]
        {
            get {

                switch (type)
                {
                    case GBufferTypes.DEPH:
                        return depthRT;                    
                    case GBufferTypes.NORMAL:
                        return normalRT;
                    case GBufferTypes.Extra1:
                        return lightOclusionRT;                                            
                    default:
                        ActiveLogger.LogMessage("Invalid Buffer requested", LogLevel.FatalError);
                        throw new Exception("This GBUFFER dont use this Buffer Type");                        
                }
            }
        }
コード例 #4
0
        public Microsoft.Xna.Framework.Graphics.Texture2D this[GBufferTypes type]
        {
            get {
                switch (type)
                {
                case GBufferTypes.DEPH:
                    return(depthRT);

                case GBufferTypes.NORMAL:
                    return(normalRT);

                case GBufferTypes.Extra1:
                    return(lightOclusionRT);

                default:
                    ActiveLogger.LogMessage("Invalid Buffer requested", LogLevel.FatalError);
                    throw new Exception("This GBUFFER dont use this Buffer Type");
                }
            }
        }