Instanced Prototype
A component that is added to model prefabs, enabling them to be used with Flora's instancing and placement features.
Overview
The InstancedPrototype
component allows you to configure various settings for how instances of a model prefab are rendered and managed in a scene. This includes controlling the density of instances, their streaming and culling behavior, shadow properties, and light probe sampling.
Additionally, it offers extensive options for placing instances accurately in the scene, including density, scale, alignment, and collision settings. Generally this component will be added for you when painting with a model in the scene, or when adding the InstancedTerrainFoliage
component to your Terrain
.
Instancing Settings
Culling Mode: Determines how instances are culled, either using
LODGroup
settings or a custom distance.Culling Distance: The custom distance from the camera at which instances are culled.
Streaming Mode: Specifies how instances are streamed, either automatically or based on a custom distance.
Streaming Distance: The custom distance for streaming instances in and out from the GPU.
Layer Mask: Defines whether the layer mask is inherited from the scene
GameObject
or the prefab.Global Density: Controls whether the static density is affected by global instance density settings.
Dynamic Density: Adjusts instance density based on distance from the camera.
Shadow Settings
Shadow Distance: The maximum distance for rendering shadows.
Shadow LOD Range: The range of LOD levels used for rendering shadows.
Shadow Override Mode: Determines the material mode for shadows, including options for custom materials.
Shadow Custom Material: Specifies a custom material for rendering shadows if the override mode is set to use a custom material.
Light Probes
Sample Light Probes: Enables or disables light probe sampling for instances.
Sample Light Probes Offset: Sets an offset for light probe sampling positions.
Linked Game Object
Create Linked Object: Enables or disables the creation of a linked GameObject to control instances.
Linked Object Contributes to GI: Determines if the linked object contributes to global illumination.
Placement Settings
Density: Configures the density of instances per 10 square meters.
Placement Radius: Sets the minimum distance between instances.
Scale: Controls the scaling of instances, with multiple modes for uniform or axis-specific scaling.
Alignment: Adjusts vertical offset, randomizes yaw and pitch, and aligns instances to the surface normal.
Masking: Defines slope and height masks to control instance placement.
Collision: Sets up collision checks to ensure instances do not overlap or intersect undesirably.
Last updated