For the complete documentation index, see llms.txt. This page is also available as Markdown.

Additional Renderer Settings

Provides additional rendering options for Flora on a per-prefab basis.

Attach this component to a prefab to add per-prefab caps for distance, shadows, and density participation.


Properties

AdditionalPerInstanceData

  • Allocates optional per-instance shader data for this prefab.

    • RandomID exposes a stable per-instance random value as flora_RandomID or the Shader Graph InstanceRandomID node.

    • VariationColor exposes a per-instance color as flora_VariationColor or the Shader Graph InstanceVariationColor node.

  • Enable only the data your shaders need; each enabled flag increases per-instance data.

  • See Shaders and Materials for shader setup.

InitialVariationColor

  • Initial value for VariationColor instances.

  • Ignored unless AdditionalPerInstanceData includes VariationColor.

  • Individual instances can override it at runtime with FloraSystem.SetInstanceVariationColor(...) or SetInstanceVariationColors(...).

MaxRenderDistance

  • Adds a per-prefab maximum render distance cap.

    • 0 — Prefab cap disabled.

    • Non-zero — Combined with other active caps; the smallest non-zero cap wins.

MaxShadowDistance

  • Adds a per-prefab maximum shadow distance cap.

    • 0 — Prefab cap disabled.

    • Non-zero — Combined with other active caps; the smallest non-zero cap wins.

MinShadowLOD

  • Sets the lowest LOD index allowed for rendering shadows.

    • 0 — Highest detail.

    • Higher values reduce shadow fidelity to improve performance.

AffectedByGlobalDensity

  • If enabled, instances can be culled based on the current Global Density.

AffectedByRangeDensity

  • If enabled, instances can be culled based on Range Density values in the scene.

AffectedByMinimumScreenSize

  • If enabled, instances can be culled by MinScreenSize.

  • Disable this for prefabs that should ignore minimum screen-size culling even when the active Render Settings enable it.

RequiresPerInstanceRandomID (Obsolete)

  • Migrated to AdditionalPerInstanceData.RandomID.

  • Kept for older serialized assets only.

Last updated