Additional Renderer Settings
Provides additional rendering options for Flora on a per-prefab basis.
Attach this component to a prefab for distance caps, shadow settings, or optional per-instance shader data.
Properties
AdditionalPerInstanceData
RandomIDexposesflora_RandomIDor the Shader GraphInstanceRandomIDnode.VariationColorexposesflora_VariationColoror the Shader GraphInstanceVariationColornode.
Enable only data the shader reads. Each flag increases per-instance data.
InitialVariationColor
Initial GPU value for VariationColor. Submit changes with SetInstanceVariationColor(...) or SetInstanceVariationColors(...). Keep readable state in caller-owned data.
MaxRenderDistance
Per-prefab render-distance cap. 0 disables it. The smallest active non-zero cap wins.
MaxShadowDistance
Per-prefab shadow-distance cap. 0 disables it. The smallest active non-zero cap wins.
MinShadowLOD
Lowest LOD index allowed for shadows. 0 allows LOD0.
Small Mesh Culling
Flora uses Renderer.smallMeshCulling for RangeDensity and MinScreenSize. Disabling it on one renderer disables both features for the render prototype.
RequiresPerInstanceRandomID (Obsolete)
Kept only to migrate older assets to AdditionalPerInstanceData.RandomID.
Last updated