OsSetTerrainTextures
From OpenSimulator
(Difference between revisions)
| Line 10: | Line 10: | ||
* PBR materials for new viewers if types == 1<br> | * PBR materials for new viewers if types == 1<br> | ||
The list textureKeys must contain keys or names of 4 textures or 4 pbr materials. They must be of the same type due to viewers restrictions.<br> | The list textureKeys must contain keys or names of 4 textures or 4 pbr materials. They must be of the same type due to viewers restrictions.<br> | ||
| − | This define the textures or materials the viewer will use from low to high terrain height level, as on viewers World -> Region Details -> Terrain menu tab. | + | This define the textures or materials the viewer will use to draw the terrain texture<br> |
| + | They are ordered from low to high terrain height level, as on viewers World -> Region Details -> Terrain menu tab.<br> | ||
If a entry is a name, then the material or texture must be present on the prim inventory.<br> | If a entry is a name, then the material or texture must be present on the prim inventory.<br> | ||
If a entry is a empty string, then that level is unchanged. | If a entry is a empty string, then that level is unchanged. | ||
Revision as of 16:58, 5 May 2025
osSetTerrainTextures(list textureKeys, integer types)
| |
Regions store two sets of textures or materials:
so this function sets terrain:
The list textureKeys must contain keys or names of 4 textures or 4 pbr materials. They must be of the same type due to viewers restrictions. | |
| Threat Level | High |
| Permissions | ESTATE_MANAGER,ESTATE_OWNER |
| Extra Delay | 0 seconds |
| Notes | |
| This function was added in 0.9.3.1 | |