# Render Settings

Attach this component to a [Volume](https://docs.unity3d.com/6000.1/Documentation/Manual/urp/Volumes.html) to override [scene-level](/scripts/scene-settings.md) culling and rendering parameters for Flora instances.

These overrides apply only within the volume’s bounds and can be blended like other volume-based settings.

Distance caps are composed using the smallest active non-zero value across scene/volume/template/terrain sources.

***

### Properties

#### <mark style="color:yellow;">MinScreenSizeMode</mark>

* Controls which objects `MinScreenSize` affects.
  * `Disabled` = minimum screen-size culling is disabled.
  * `RenderersOnly` = applies to renderer templates, but not LODGroups.
  * `RenderersAndLODGroups` = applies to renderer and LODGroup templates.

***

#### <mark style="color:yellow;">MinScreenSize</mark>

* The **minimum screen-space coverage** an instance must occupy to be rendered.
  * Instances smaller than this threshold are culled.
  * Useful for avoiding rendering of tiny or far-away instances.

***

#### <mark style="color:yellow;">MaxRenderDistance</mark>

* The maximum world-space distance from the camera at which instances will be rendered.
  * `0` = This cap is disabled.
  * Non-zero = Instances beyond this range are culled

***

#### <mark style="color:yellow;">MinShadowLOD</mark>

* The **minimum LOD index** used when rendering shadows for Flora instances.
  * `0` = Full detail (LOD0)
  * Higher values reduce shadow quality for distant or low-priority objects

***

#### <mark style="color:yellow;">MaxShadowDistance</mark>

* The maximum distance at which **shadows are drawn** for Flora instances.
  * `0` = This cap is disabled.
  * Non-zero = Additional shadow distance cap

***

#### <mark style="color:yellow;">CrossFadeDuration</mark>

* The duration of **LOD cross-fade transitions** (in seconds).
  * Affects LODGroups with animated cross-fading enabled
  * `0` = Instant LOD switch
  * Higher values result in smoother visual transitions between LOD levels

***

#### <mark style="color:yellow;">RandomizeLODTransition</mark>

* Adds per-instance variation to LOD transition thresholds.
  * `0` = no randomization.
  * Higher values reduce visible synchronized LOD popping across repeated instances.

***

#### <mark style="color:yellow;">MinScreenSizeAffectsLODGroups</mark> *(Obsolete)*

* Migrated to `MinScreenSizeMode`.
* Existing enabled overrides become `RenderersAndLODGroups`.
* Kept for older serialized assets only.

***

### Runtime Override Note

When setting values at runtime, use `VolumeParameter.Override(...)` so the override state is enabled:

```csharp
var sceneSettings = FloraSceneSettings.GetOrCreate();
var render = sceneSettings.GetGlobalRenderSettings();
render.MaxRenderDistance.Override(120f);
render.MaxShadowDistance.Override(80f);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://flora.magneticarcade.com/scripts/render-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
