Terrain
Render Unity Terrain trees and details through BRG Instanced Renderer.
Setup
- Add the BRG Terrain Registerer component to your Terrain GameObject
- Configure settings — see the BRG Terrain Registerer component reference
- Enter Play Mode
That's it. Trees are extracted and uploaded automatically. Details stream in around the camera. The terrain's built-in rendering is disabled by default so BRG takes over.
Detail Overrides
Default Unity terrain detail prototypes are single-mesh prefabs with no LOD support. To use an LOD Group variant instead, add a BRG Terrain Detail Override component to the detail prototype prefab and assign your replacement prefab to the Override Prefab field.
The resolved prefab list is shown read-only in the BRG Terrain Registerer inspector.
Convert To Terrain Prefab
If you already have complex prefabs with LOD Groups, you can generate terrain-compatible versions automatically:
- Select one or more prefabs in the Project window
- Use Tools > BRG Instanced Renderer > Convert To Terrain Prefab
- The tool creates simplified single-mesh prefabs in a
TerrainDetailPrefabsubfolder next to each source prefab - Each generated prefab contains a BRG Terrain Detail Override pointing back to the original
Assign the generated prefabs to your terrain's detail prototypes. BRG will render the original (with full LODs) at runtime.