Inheritance: IUpdatableManager
 /// <summary>
 /// helper for creating a RenderTarget2D
 /// </summary>
 /// <param name="width">Width.</param>
 /// <param name="height">Height.</param>
 /// <param name="preferredDepthFormat">Preferred depth format.</param>
 public RenderTexture(int width, int height, DepthFormat preferredDepthFormat)
 {
     renderTarget = RenderTarget.create(width, height, Screen.backBufferFormat, preferredDepthFormat);
 }
Exemplo n.º 2
0
 public RenderTarget()
 {
     instance = this;
 }
 /// <summary>
 /// helper for creating a full screen RenderTarget2D with a specific DepthFormat
 /// </summary>
 /// <param name="preferredDepthFormat">Preferred depth format.</param>
 public RenderTexture(DepthFormat preferredDepthFormat)
 {
     renderTarget = RenderTarget.create(Screen.width, Screen.height, Screen.backBufferFormat, preferredDepthFormat);
 }