Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

CommandBuffer.Blit

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual
public function Blit(source: Texture, dest: Rendering.RenderTargetIdentifier): void;
public void Blit(Texture source, Rendering.RenderTargetIdentifier dest);
public function Blit(source: Texture, dest: Rendering.RenderTargetIdentifier, mat: Material): void;
public void Blit(Texture source, Rendering.RenderTargetIdentifier dest, Material mat);
public function Blit(source: Texture, dest: Rendering.RenderTargetIdentifier, mat: Material, pass: int): void;
public void Blit(Texture source, Rendering.RenderTargetIdentifier dest, Material mat, int pass);
public function Blit(source: Rendering.RenderTargetIdentifier, dest: Rendering.RenderTargetIdentifier): void;
public function Blit(source: Rendering.RenderTargetIdentifier, dest: Rendering.RenderTargetIdentifier, mat: Material): void;
public function Blit(source: Rendering.RenderTargetIdentifier, dest: Rendering.RenderTargetIdentifier, mat: Material, pass: int): void;

Parámetros

source Source texture or render target to blit from.
dest Destination to blit into.
mat Material to use.
pass Shader pass to use (default is -1, meaning "all passes").

Descripción

Add a "blit into a render texture" command.

This is similar to Graphics.Blit - it is mostly for copying from one (render)texture into another, potentially using a custom shader.

Source texture or render target will be passed to the material as "_MainTex" property.

Render texture to use can be indicated in several ways: a RenderTexture object, a temporary render texture created with GetTemporaryRT, or one of built-in temporary textures (BuiltinRenderTextureType). All that is expressed by a RenderTargetIdentifier struct, which has implicit conversion operators to save on typing.

See Also: GetTemporaryRT, RenderTargetIdentifier.