pub struct CustomRenderTexture {Show 36 fields
pub m_AntiAliasing: i32,
pub m_ColorFormat: i32,
pub m_CubemapFaceMask: u32,
pub m_CurrentUpdateZoneSpace: i32,
pub m_Dimension: i32,
pub m_DoubleBuffered: bool,
pub m_GenerateMips: bool,
pub m_Height: i32,
pub m_InitColor: ColorRGBA,
pub m_InitMaterial: PPtr,
pub m_InitTexture: PPtr,
pub m_InitializationMode: i32,
pub m_Material: PPtr,
pub m_MipMap: bool,
pub m_Name: String,
pub m_SRGB: bool,
pub m_ShaderPass: u32,
pub m_TextureSettings: GLTextureSettings,
pub m_UpdateMode: i32,
pub m_UpdatePeriod: f32,
pub m_UpdateZoneSpace: i32,
pub m_UpdateZones: Vec<UpdateZoneInfo>,
pub m_VolumeDepth: i32,
pub m_Width: i32,
pub m_WrapUpdateZones: bool,
pub m_BindMS: Option<bool>,
pub m_DepthFormat: Option<i32>,
pub m_DepthStencilFormat: Option<i32>,
pub m_DownscaleFallback: Option<bool>,
pub m_EnableCompatibleFormat: Option<bool>,
pub m_ForcedFallbackFormat: Option<i32>,
pub m_InitSource: Option<i32>,
pub m_IsAlphaChannelOptional: Option<bool>,
pub m_MipCount: Option<i32>,
pub m_ShadowSamplingMode: Option<i32>,
pub m_UseDynamicScale: Option<bool>,
}Expand description
CustomRenderTexture is a class of the Unity engine since version 5.6.0b1. Exert from Unity’s scripting documentation: Custom Render Textures are an extension to Render Textures that allow you to render directly to the Texture using a Shader. Custom Render Textures are an extension to Render Textures that allow you to update a 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.
Fields§
§m_AntiAliasing: i32The antialiasing level for the RenderTexture.
m_ColorFormat: i32§m_CubemapFaceMask: u32The bit field that you can use to enable or disable update on each of the cubemap faces. The bit order from least to most significant bit is as follows: +X, -X, +Y, -Y, +Z, -Z.
m_CurrentUpdateZoneSpace: i32§m_Dimension: i32Dimensionality (type) of the Texture (Read Only).
m_DoubleBuffered: boolWhen this parameter is set to true, Unity double-buffers the Custom Render Texture so that you can access it during its own update.
m_GenerateMips: bool§m_Height: i32Height of the Texture in pixels (Read Only).
m_InitColor: ColorRGBA§m_InitMaterial: PPtrPPtr<Material>: (5.6.0b1 - 2022.3.2f1)
m_InitTexture: PPtrPPtr<Texture>: (5.6.0b1 - 2022.3.2f1)
m_InitializationMode: i32Determine how Unity initializes a texture.
m_Material: PPtrThe Material that Unity uses to initialize the content of a Custom Render Texture.
PPtr<Material>: (5.6.0b1 - 2022.3.2f1)
m_MipMap: bool§m_Name: StringThe name of the object.
m_SRGB: boolDoes this render texture use sRGB read/write conversions? (Read Only).
m_ShaderPass: u32The Shader Pass Unity uses to update the Custom Render Texture.
m_TextureSettings: GLTextureSettings§m_UpdateMode: i32Determine how Unity updates the Custom Render Texture.
m_UpdatePeriod: f32The period in seconds that Unity updates real-time Custom Render Textures. A value of 0.0 means Unity updates real-time Custom Render Textures every frame.
m_UpdateZoneSpace: i32The space in which Unity expresses update zones. You can set this to Normalized or Pixel space.
m_UpdateZones: Vec<UpdateZoneInfo>§m_VolumeDepth: i32Volume extent of a 3D render texture or number of slices of array texture.
m_Width: i32Width of the Texture in pixels (Read Only).
m_WrapUpdateZones: boolWhen this parameter is set to true, Unity wraps Update zones around the border of the Custom Render Texture. Otherwise, Unity clamps Update zones at the border of the Custom Render Texture.
m_BindMS: Option<bool>bool: (2017.3.0b1 - 2022.3.2f1)
m_DepthFormat: Option<i32>i32: (5.6.0b1 - 2021.2.0a17)
m_DepthStencilFormat: Option<i32>The format of the depth/stencil buffer. i32: (2021.2.0b1 - 2022.3.2f1)
m_DownscaleFallback: Option<bool>bool: (2017.3.0b1 - 2022.3.2f1)
m_EnableCompatibleFormat: Option<bool>bool: (2019.1.0b1 - 2022.3.2f1)
m_ForcedFallbackFormat: Option<i32>i32: (2017.3.0b1 - 2022.3.2f1)
m_InitSource: Option<i32>i32: (5.6.0f1 - 2022.3.2f1)
m_IsAlphaChannelOptional: Option<bool>bool: (2020.2.0b1 - 2022.3.2f1)
m_MipCount: Option<i32>i32: (2019.2.0b1 - 2022.3.2f1)
m_ShadowSamplingMode: Option<i32>i32: (2021.2.0f1 - 2022.3.2f1)
m_UseDynamicScale: Option<bool>Is the render texture marked to be scaled by the Dynamic Resolution system. bool: (2017.3.0b1 - 2022.3.2f1)