예제 #1
0
		public TestImageFloat(string filename)
		{
			if (Effect == null)
			{
				Effect = SharedEffects.Effects["ImposterFloat"] as ImposterFloatEffect;
			}

			m_Filename = filename; 
		}
예제 #2
0
		public ImposterFloat(int width, int height, Format format, Color4 background, ImposterOverlayType overlayType)
		{
			if (Effect == null)
			{
				Effect = SharedEffects.Effects["ImposterFloat"] as ImposterFloatEffect; 
			}

			m_Disposed = true;
			m_BackupState = new RenderTargetBackupState();
			m_ImposterView = new View3D(new System.Drawing.Rectangle(0, 0, width, height), width, height, (float)Math.PI / 4, 1f);
			m_Format = format;
			m_Background = background;
			m_OverlayType = overlayType; 
		}