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"); } } }
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"); } } }
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"); } } }
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"); } } }