Question by
theonerm2 · Mar 20 at 11:27 AM ·
terraindata
CopyActiveRenderTextureToHeightmap on only part of the heightmap?
I want to smooth the terrain via a shader. It works but it smooths the entire terrain. I only want to smooth a region of the terrain. I'm using CopyActiveRenderTextureToHeightmap to set the heightmap.
terrain.terrainData.CopyActiveRenderTextureToHeightmap(rect, destination, TerrainHeightmapSyncControl.HeightOnly);
If destination is anything other than Vector2Int.zero it says it's outside the range of valid values.
Comment
Your answer
Follow this Question
Related Questions
Runtime terrain painting with SetAlphamaps = lag 0 Answers
Terrain thickness doesn't stop fast moving objects 0 Answers
[C#] Error in script [IndexOutOfRangeException] 1 Answer
Terrain "Creating System" consuming infinite memory [Please Help] 0 Answers
How to import terrain and image generated from UAV to unity? 0 Answers