mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-02-01 02:01:15 -05:00
* Added HasTerrain attribute for buffer overflow safety if reading terrain data before terrain has been initialized on the GPU * Fix terrain leaking gpu buffer if disabled or deleted Set HasTerrain flag to false once all terrains are gone * Exposed more terrain helpers in TerrainCommon.hlsl - GetWorldHeight - IsInBounds - SampleColor * built shaders * built terrain shader * Changed Has() to terrainCount instead * Make count 0 if disabling the last terrain * built shaders