pub struct UnityUrpSettings {Show 16 fields
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 lighting and shadow settings of a Universal Render Pipeline asset as stored (UniversalRenderPipelineAsset,
asset version 13; this module’s docs state the verified layout): the light modes as LightRenderingMode
numbers them (0 disabled, 1 per pixel, 2 per vertex), the shadow cascade count (1 to 4), the settings that decide
which of a pass’s keywords the pipeline sets.
Fields§
§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.