branchrust_reboot/main/naval_update/foliage_instancing_islandscancel
8 Commits over 0 Days - ∞cph!
Clean up left over shader constants
Remove unused foliage terrain cbuffer update functions
Remove CPU height sampling option can't be supported with mesh terrains
Do not invalidate cells when pushing a mesh terrain (only invalidate when nearest is changed)
Update terrain cbuffer after switching terrain data
Fix terrainData list removing, clamp activeTerrainIndex to length, and move matrix setup into terrainData constructor
MeshTerrainRoot should now auto update terrain size field (needed for terrain map sampling), and update island prefabs with terrain size field.
Check for closest island in increments instead of every frame, also profiler sample fix.
FoliageGrid renders on closest island and resets when island changes. Handle cases of terrain being rotated when sampling terrain maps by extracting 2D worldToLocalMatrix.