branchrust_reboot/main/terrain_renderercancel

109 Commits over 243 Days - 0.02cph!

44 Days Ago
Terrain quality now effects terrain LOD global scale Clamp terrain cells to terrain borders In editor TerrainMeta will try and find terrainData if null
44 Days Ago
Merge from main
44 Days Ago
Codegen
44 Days Ago
Improve switching between terrain renderers in game for testing Remove terrain prefab from worldsetup Rename renderer to GeometryClipmapTerrain Fix compile error with server
45 Days Ago
Merge from main
45 Days Ago
Switching renderer enum in editor now finds and enables chosen terrain renderer Simplify lod configs to int array Fix terrain position getter Rename terrain compute
47 Days Ago
Refactor of TerrainMeta and TerrainExtensions with swappable terrain/terrain renderer using ConVar or in editor view (WIP) Changed keyword to _GEO_CLIPMAP and made shader feature Added geoclip material to terrain config Terrain mesh colliider with terrain holes functionality
56 Days Ago
Merge from main
56 Days Ago
Fix height sampling on some terrain sizes, add tooltips to convars, fix server compile errors, set terrain prefab to craggy, set default global lod scale to 2
56 Days Ago
Add ConVar to use MeshColliders for terrain cells, add editor buttons to create mesh colliders, clean up unused code, and put debug info behind flags.
56 Days Ago
Clean up editor, fix LOD extent validation, fix editor defaults causing 0 LOD extents, and set new defaults
2 Months Ago
Terrain cell mesh colliders with separate cellsize from rendering
2 Months Ago
Merge from main
2 Months Ago
Terrain mesh collision cells wip
2 Months Ago
Merge from main
2 Months Ago
- TerrainHoles support - Add compute blit when using R16 format - Only create R16 map when enabled - Change low res heightmap to use full uint16 range - Initialise groupthread min and max at texture bounds to fix border values
2 Months Ago
Terrain collision update tests - Implement CPU heightmap functions in GPU compute (HeightMapApply), should remove need for map sync - Profile tests for AddHeight and SetHeightsDelayLOD using a limited texel area - Add option to use terrain R16 maps, and the active terrain render texture - Use R16 UAV heightmap for compute and terrain vertex shader - Improve camera culling by including min/max height of cell
2 Months Ago
Add alternate slanted grid topology option Fix culling radius calculation Fix LOD scaling cell positions for culling
2 Months Ago
Merge from main
2 Months Ago
Testing changing terrainData heights with different apply methods, and using terrainData heightmap RenderTexture
3 Months Ago
- Swap terrain convar lodFactor with lodGlobalScale - GlobalScale effects cell counts between each LOD level - Add LOD cell extent sliders for each individual LOD level - Simplify instance offsets calc - Adjust culling for new terrain cell sizes
3 Months Ago
- Fix lod border cells, and negative cells - Change mesh master to only 3 submeshes - Change instance offsets and arguments for new approach
3 Months Ago
- Culling toggle in editor - Fix issues with cell offsets - Fix grid offsets with negatives - Change dispatch thread size
3 Months Ago
Split grid sideblocks to simplify thread to coords
3 Months Ago
Nested grid changes: - Add scale to instance data - Move rotation float2 to uint - Handle finding grid coords in nested grid with thread id - Find LOD using precomputed offsets instead of distances - Adjust grids by offset from LOD0 grid
3 Months Ago
Merge from main
3 Months Ago
Terrain renderer editor script
3 Months Ago
Add terrain testing scene
3 Months Ago
Add mesh spawn debug option
3 Months Ago
Change vertex density slider to int Switch to linear sampling where density is increased
3 Months Ago
Fix edge length calculation, alignment actually fixed
3 Months Ago
Align terrain vertices with texel corner to match unity
3 Months Ago
Merge from main
3 Months Ago
Move ConVars to terrain ConVars Add terrain renderer to WorldSetup Add terrain mesh culling toggle
3 Months Ago
Merge from main
3 Months Ago
Improve editor terrain view Snap render distance to cell to make bounds consistent FIx incorrect LOD borders at last LOD
4 Months Ago
Change position operations to integer coords to solve lod border issues with some terrain sizes Setup terrain renderer to run in editor for scene view and game view cameras
4 Months Ago
Make low res heightmap size dynamic to handle different terrain sizes
4 Months Ago
Add profiling marker to terrain render
4 Months Ago
Merge from main
4 Months Ago
Use min and max for coarse terrain height shadow culling and re-enabled camera and shadowing culling.
4 Months Ago
Add vertex density slider for terrain detail Fix grid position alignment issues with some cell sizes Editor recreates terrain buffers on inspector changes
4 Months Ago
Fix instance offsets, and LOD border calculations when using some LOD distance values Add debug validation toggle to system Handle terrain detail when using narrow FOVs by moving the centre point along the forward direction but clamped to the first LOD boundry
5 Months Ago
Fix render bounds flooring Fix corner LOD edge detection LODs are now seamless
5 Months Ago
Fix incorrect edgeFlags, rotation, and flipped border meshes
5 Months Ago
Add colour to instance data for debugging, wip rotation handling for seamless LOD borders
5 Months Ago
Fix cell mesh sizes at each LOD
5 Months Ago
Fix mesh create errors, change from vertCount to vertLOD index for choosing lowest LOD vertex count
5 Months Ago
Merge from main
5 Months Ago
Fix mesh creation with border meshes Calculate instance offsets when LOD factor is updated Combine per LOD compute into singular dispatch