pub struct UnityUrpSettings {Show 21 fields
pub renderers: Vec<PPtr>,
pub default_renderer: i64,
pub require_depth_texture: bool,
pub require_opaque_texture: bool,
pub msaa: i64,
pub main_light_mode: i64,
pub main_light_shadows: bool,
pub additional_lights_mode: i64,
pub additional_light_shadows: bool,
pub reflection_probe_blending: bool,
pub reflection_probe_box_projection: bool,
pub reflection_probe_atlas: bool,
pub shadow_distance: f32,
pub shadow_cascades: u8,
pub soft_shadows: bool,
pub mixed_lighting: bool,
pub light_cookies: bool,
pub light_layers: bool,
pub lod_cross_fade: bool,
pub sh_eval_mode: i64,
pub light_probe_system: i64,
}Expand description
The settings of a Universal Render Pipeline asset as stored (UniversalRenderPipelineAsset, asset version 13; this
module’s docs state the verified layout): its renderers and the one cameras use by default, whether it makes the
depth and opaque textures, its MSAA sample count, and the lighting and shadow settings that decide which of a
pass’s keywords the pipeline sets: the light modes as LightRenderingMode numbers them (0 disabled, 1 per pixel,
2 per vertex) and the shadow cascade count (1 to 4).
Fields§
§renderers: Vec<PPtr>The renderers (m_RendererDataList), each a ScriptableRendererData asset, in the order a camera’s renderer
index counts them.
default_renderer: i64The index in UnityUrpSettings::renderers of the renderer a camera with renderer index -1 draws with
(m_DefaultRendererIndex).
require_depth_texture: boolWhether the pipeline makes the camera depth texture (m_RequireDepthTexture), for a camera whose depth texture
option is the pipeline’s setting.
require_opaque_texture: boolWhether the pipeline makes the camera opaque texture (m_RequireOpaqueTexture), likewise.
msaa: i64The MSAA sample count (m_MSAA: 1, 2, 4 or 8).
main_light_mode: i64The main light’s rendering mode (m_MainLightRenderingMode).
main_light_shadows: boolWhether the main light casts shadows.
additional_lights_mode: i64The additional lights’ rendering mode (m_AdditionalLightsRenderingMode).
additional_light_shadows: boolWhether additional lights cast shadows.
reflection_probe_blending: boolWhether reflection probes blend.
reflection_probe_box_projection: boolWhether reflection probes use box projection.
reflection_probe_atlas: boolWhether reflection probes are packed into an atlas.
shadow_distance: f32m_ShadowDistance.
shadow_cascades: u8m_ShadowCascadeCount.
soft_shadows: boolWhether soft shadows are supported.
mixed_lighting: boolWhether mixed lighting is supported.
Whether light cookies are supported.
light_layers: boolWhether light layers are supported.
lod_cross_fade: boolWhether LOD cross-fading is enabled.
sh_eval_mode: i64ShEvalMode: 0 auto, 1 per vertex, 2 mixed, 3 per pixel.
light_probe_system: i64LightProbeSystem: 0 legacy light probes, 1 probe volumes.