make terrain brush

hi
i want to make brush same as unity terrain brush
So that wherever the mouse goes, it is displayed on the terrain

1 Like

If you dig through the TerrainAPI namespace, you can reproduce the exact same result as the terrain tools use UnityCsReference/Modules/TerrainEditor/Utilities/TerrainPaintUtilityEditor.cs at 61f92bd79ae862c4465d35270f9d1d57befd1761 · Unity-Technologies/UnityCsReference · GitHub

1 Like

It was created by a projector with a colored shader
Now I want to change it to 3D form by changing the shader
Similar to the image below, set the brush height based on the alpha gray brush

what should we do?