OsSetTerrainTextures
From OpenSimulator
(Difference between revisions)
(One intermediate revision by one user not shown) | |||
Line 2: | Line 2: | ||
|function_syntax= osSetTerrainTextures(list textureKeys, integer types) | |function_syntax= osSetTerrainTextures(list textureKeys, integer types) | ||
|description= | |description= | ||
− | Opensimulator regions store two sets of | + | Opensimulator regions store two sets of texture or material keys: |
* a set of texture keys for legacy viewers and map | * a set of texture keys for legacy viewers and map | ||
* a set of texture or pbr material keys for new viewers.<br> | * a set of texture or pbr material keys for new viewers.<br> | ||
Line 13: | Line 13: | ||
They are ordered from low to high terrain height level, as on viewers World -> Region Details -> Terrain menu tab.<br> | They are ordered from low to high terrain height level, as on viewers World -> Region Details -> Terrain menu tab.<br> | ||
If an entry is a name, then the material or texture must be present on the prim inventory.<br> | If an entry is a name, then the material or texture must be present on the prim inventory.<br> | ||
− | If an entry is an empty string, then that level is unchanged. | + | If an entry is an empty string, then that level is unchanged.<br> |
+ | Uses same threat level as osSetTerrainTexture in ossl_enable.ini | ||
|threat_level=High | |threat_level=High | ||
|permissions=ESTATE_MANAGER,ESTATE_OWNER | |permissions=ESTATE_MANAGER,ESTATE_OWNER |
Latest revision as of 15:43, 6 May 2025
osSetTerrainTextures(list textureKeys, integer types)
| |
Opensimulator regions store two sets of texture or material keys:
so this function allows to change those keys depending on the value of types:
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 |