CustomRenderTexture

class in UnityEngine

/

Hereda de:RenderTexture

Cambiar al Manual

Descripción

Custom Render Textures are an extension to Render Textures, enabling you to render directly to the Texture using a Shader.

Custom Render Textures are an extension to Render Textures allowing you easily to update the texture with a Shader and then use it in a regular Material. This is useful for implementing all kinds of complex simulations, for instance: water caustics, ripple simulations for rain effects, or splatting liquids against a wall. Also provided is a scripting and Shader framework to help with more complicated configurations like partial or multi-pass updates, and varying update frequency.

Variables

cubemapFaceMaskBitfield that allows to enable or disable update on each of the cubemap faces. Order from least significant bit is +X, -X, +Y, -Y, +Z, -Z.
doubleBufferedIf true, the Custom Render Texture is double buffered so that you can access it during its own update. otherwise the Custom Render Texture will be not be double buffered.
initializationColorColor with which the Custom Render Texture is initialized. This parameter will be ignored if an initializationMaterial is set.
initializationMaterialMaterial with which the Custom Render Texture is initialized. Initialization texture and color are ignored if this parameter is set.
initializationModeSpecify how the texture should be initialized.
initializationSourceSpecify if the texture should be initialized with a Texture and a Color or a Material.
initializationTextureTexture with which the Custom Render Texture is initialized (multiplied by the initialization color). This parameter will be ignored if an initializationMaterial is set.
materialMaterial with which the content of the Custom Render Texture is updated.
shaderPassShader Pass used to update the Custom Render Texture.
updateModeSpecify how the texture should be updated.
updateZoneSpaceSpace in which the update zones are expressed (Normalized or Pixel space).
wrapUpdateZonesIf true, Update zones will wrap around the border of the Custom Render Texture. Otherwise, Update zones will be clamped at the border of the Custom Render Texture.

Constructores

CustomRenderTextureCreate a new Custom Render Texture.

Funciones Públicas

ClearUpdateZonesClear all Update Zones.
GetUpdateZonesReturns the list of Update Zones.
InitializeTriggers an initialization of the Custom Render Texture.
SetUpdateZonesSetup the list of Update Zones for the Custom Render Texture.
UpdateTriggers the update of the Custom Render Texture.

Miembros heredados

Variables Estáticas

activeRender texture actualmente activa.

Variables

hideFlags¿Debería el objeto estar oculto, guardado con la escena o modificable por el usuario?
nameEl nombre del objeto.
antiAliasingEl nivel antialiasing para la RenderTexture.
autoGenerateMipsMipmap levels are generated automatically when this flag is set.
bindTextureMSIf true and antiAliasing is greater than 1, the render texture will not be resolved by default. Use this if the render texture needs to be bound as a multisampled texture in a shader.
colorBufferBuffer de color de la render texture (Lectura solamente).
depthThe precision of the render texture's depth buffer in bits (0, 16, 24/32 are supported).
depthBufferDepth/stencil buffer de la render texture (lectura solamente).
descriptorThis struct contains all the information required to create a RenderTexture. It can be copied, cached, and reused to easily create RenderTextures that all share the same properties.
dimensionDimensionalidad (tipo) de la render texture.
enableRandomWriteHabilita la escritura de acceso aleatoria a esta render texture en Shader Model 5.0 level shaders.
formatEl formato de color de la render texture.
heightLa altura de la render texture en pixeles.
memorylessModeThe render texture memoryless mode property.
sRGBEsta render texture utiliza una conversión sRGB lectura/escritura (Lectura solamente).
useDynamicScaleIs the render texture marked to be scaled by the Dynamic Resolution system.
useMipMapRender texture has mipmaps when this flag is set.
volumeDepthVolume extent of a 3D render texture or number of slices of array texture.
vrUsageIf this RenderTexture is a VR eye texture used in stereoscopic rendering, this property decides what special rendering occurs, if any.
widthEl ancho de la render texture en pixeles.
anisoLevelNivel de filtrado anisotrópico de la textura.
dimensionDimensionalidad (tipo) de la textura (lectura solamente).
filterModeModo de filtrado de la textura.
heightAltura de la textura en pixels. (Read Only)
imageContentsHashThe hash value of the Texture.
mipMapBiasMip map bias de la textura.
widthAnchura de la textura en píxeles. (Read Only)
wrapModeTexture coordinate wrapping mode.
wrapModeUTexture U coordinate wrapping mode.
wrapModeVTexture V coordinate wrapping mode.
wrapModeWTexture W coordinate wrapping mode for Texture3D.

Funciones Públicas

GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the GameObject.
CreateEn realidad crea la RenderTexture.
DiscardContentsHint the GPU driver that the contents of the RenderTexture will not be used.
GenerateMipsGenerate mipmap levels of a render texture.
GetNativeDepthBufferPtrRecupera un apuntador (API gráfica subyacente) nativo al recurso del depth buffer.
IsCreatedEs la render texture en realidad creada?
MarkRestoreExpectedIndica que hay una operación de restauración RenderTexture esperada.
ReleaseSuelta la RenderTexture.
ResolveAntiAliasedSurfaceForce an antialiased render texture to be resolved.
SetGlobalShaderPropertyAsigna esta RenderTexture como una propiedad global shader llamada propertyName.
GetNativeTexturePtrRecupere un puntero nativo (API de gráficos subyacente) al recurso de textura.

Funciones Estáticas

DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadHace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.
GetTemporaryAsigna una render texture temporal.
ReleaseTemporarySoltar una textura temporal asignada con GetTemporary.
SupportsStencilEsta RenderTexture tiene un stencil buffer?
SetGlobalAnisotropicFilteringLimitsEstablece límites anisotrópicos.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.