IndexMapTerrain
Index map based terrain rendering and painting, with per-sample 3D projection, rotation, and weight
Install / Use
/learn @cdxntchou/IndexMapTerrainREADME
IndexMapTerrain
Works in Unity 2019.4.28f1
Example of using PaintContext.Gather/Scatter to implement Terrain tools that paint to custom textures.
Here the custom texture is an R8G8B8A8 index map, used as a replacement for the splatmaps. The index map provides control of not only the material, but also the 3D texture projection, rotation, and weight.
This lets you get very nice results on steep cliff faces:

You can see each "index" controls the material in a local domain, and the weight controls how dominant that domain is over neighboring domains.
This gives you some control over where the transition between neighboring domains occurs.

Each domain can be rotated independently, breaking up tiling patterns:

By changing the projection direction of each domain, and considering the projection direction in the weights for domain blending, you can achieve good looking transitions between steep cliffs and flat areas.

Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
