add osSetTerrainTextures(LSL_List textures, LSL_Integer types) to set terrain textures for legacy viewers it types == 0 or 2; textures for new viewers if types == 1 or 2 or PBR materials if types == 1 (untested :( )

This commit is contained in:
UbitUmarov
2025-05-06 01:29:24 +01:00
parent c9b4d3374f
commit 23ad195e7a
6 changed files with 174 additions and 13 deletions

View File

@@ -1104,6 +1104,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
m_OSSL_Functions.osSetTerrainTexture(level, texture);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void osSetTerrainTextures(LSL_List textures, LSL_Integer types)
{
m_OSSL_Functions.osSetTerrainTextures(textures, types);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void osSetTerrainTextureHeight(int corner, double low, double high)
{