SkillAgentSearch skills...

IndexMapTerrain

Index map based terrain rendering and painting, with per-sample 3D projection, rotation, and weight

Install / Use

/learn @cdxntchou/IndexMapTerrain
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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: image

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. image

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

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. image

Related Skills

View on GitHub
GitHub Stars20
CategoryDevelopment
Updated1mo ago
Forks0

Languages

C#

Security Score

75/100

Audited on Feb 17, 2026

No findings