GroundTextureParam
Constants in the GroundTextureParam enum.
// TexturesTERRAIN_DETAIL_1, string texture_id // texture or material, name or UUID; NULL_KEY or "" restores the defaultTERRAIN_DETAIL_2, string texture_idTERRAIN_DETAIL_3, string texture_idTERRAIN_DETAIL_4, string texture_id// Height blendingTERRAIN_HEIGHT_RANGE_SW, float low, float high // low: max height of texture 1; high: min height of texture 4TERRAIN_HEIGHT_RANGE_SE, float low, float highTERRAIN_HEIGHT_RANGE_NW, float low, float highTERRAIN_HEIGHT_RANGE_NE, float low, float high// PBR scale, rotation and offsetTERRAIN_PBR_SCALE_1, vector uv_scale // PBR only; repeats per metre, z ignoredTERRAIN_PBR_SCALE_2, vector uv_scaleTERRAIN_PBR_SCALE_3, vector uv_scaleTERRAIN_PBR_SCALE_4, vector uv_scaleTERRAIN_PBR_ROTATION_1, float rotation // PBR only; radiansTERRAIN_PBR_ROTATION_2, float rotationTERRAIN_PBR_ROTATION_3, float rotationTERRAIN_PBR_ROTATION_4, float rotationTERRAIN_PBR_OFFSET_1, vector uv_offset // PBR only; z ignoredTERRAIN_PBR_OFFSET_2, vector uv_offsetTERRAIN_PBR_OFFSET_3, vector uv_offsetTERRAIN_PBR_OFFSET_4, vector uv_offset
Constants
Textures
| Constant | Type | Value | Description |
|---|---|---|---|
TERRAIN_DETAIL_1 | integer | 0 | Terrain parameter used with llSetGroundTexture to set the texture or material (via UUID, inventory name, or default NULL_KEY/empty string) for terrain detail layer 1. |
TERRAIN_DETAIL_2 | integer | 1 | Terrain parameter used with llSetGroundTexture to set the texture or material (via UUID, inventory name, or default NULL_KEY/empty string) for terrain detail layer 2. |
TERRAIN_DETAIL_3 | integer | 2 | Terrain parameter used with llSetGroundTexture to set the texture or material (via UUID, inventory name, or default NULL_KEY/empty string) for terrain detail layer 3. |
TERRAIN_DETAIL_4 | integer | 3 | Terrain parameter used with llSetGroundTexture to set the texture or material (via UUID, inventory name, or default NULL_KEY/empty string) for terrain detail layer 4. |
Height blending
| Constant | Type | Value | Description |
|---|---|---|---|
TERRAIN_HEIGHT_RANGE_SW | integer | 4 | Terrain parameter used with llSetGroundTexture to set the south-west height range for texture blending. Specifies low as the maximum height for texture 1, high as the minimum height for texture 4, and lets textures 2 and 3 mix in between. |
TERRAIN_HEIGHT_RANGE_SE | integer | 5 | Terrain parameter used with llSetGroundTexture to set the south-east height range for texture blending. Specifies low as the maximum height for texture 1, high as the minimum height for texture 4, and lets textures 2 and 3 mix in between. |
TERRAIN_HEIGHT_RANGE_NW | integer | 6 | Terrain parameter used with llSetGroundTexture to set the north-west height range for texture blending. Specifies low as the maximum height for texture 1, high as the minimum height for texture 4, and lets textures 2 and 3 mix in between. |
TERRAIN_HEIGHT_RANGE_NE | integer | 7 | Terrain parameter used with llSetGroundTexture to set the north-east height range for texture blending. Specifies low as the maximum height for texture 1, high as the minimum height for texture 4, and lets textures 2 and 3 mix in between. |
PBR scale, rotation and offset
| Constant | Type | Value | Description |
|---|---|---|---|
TERRAIN_PBR_SCALE_1 | integer | 8 | Terrain parameter used with llSetGroundTexture to set the UV scale vector (repeats per meter, ignoring the Z component) for terrain layer 1. Only works for PBR textures. |
TERRAIN_PBR_SCALE_2 | integer | 9 | Terrain parameter used with llSetGroundTexture to set the UV scale vector (repeats per meter, ignoring the Z component) for terrain layer 2. Only works for PBR textures. |
TERRAIN_PBR_SCALE_3 | integer | 10 | Terrain parameter used with llSetGroundTexture to set the UV scale vector (repeats per meter, ignoring the Z component) for terrain layer 3. Only works for PBR textures. |
TERRAIN_PBR_SCALE_4 | integer | 11 | Terrain parameter used with llSetGroundTexture to set the UV scale vector (repeats per meter, ignoring the Z component) for terrain layer 4. Only works for PBR textures. |
TERRAIN_PBR_ROTATION_1 | integer | 12 | Terrain parameter used with llSetGroundTexture to set the rotation of the PBR texture for layer 1, in radians. Only works for PBR textures. |
TERRAIN_PBR_ROTATION_2 | integer | 13 | Terrain parameter used with llSetGroundTexture to set the rotation of the PBR texture for layer 2, in radians. Only works for PBR textures. |
TERRAIN_PBR_ROTATION_3 | integer | 14 | Terrain parameter used with llSetGroundTexture to set the rotation of the PBR texture for layer 3, in radians. Only works for PBR textures. |
TERRAIN_PBR_ROTATION_4 | integer | 15 | Terrain parameter used with llSetGroundTexture to set the rotation of the PBR texture for layer 4, in radians. Only works for PBR textures. |
TERRAIN_PBR_OFFSET_1 | integer | 16 | Terrain parameter used with llSetGroundTexture to set the UV offset vector (ignoring the Z component) for drawing terrain layer 1. Only works for PBR textures. |
TERRAIN_PBR_OFFSET_2 | integer | 17 | Terrain parameter used with llSetGroundTexture to set the UV offset vector (ignoring the Z component) for drawing terrain layer 2. Only works for PBR textures. |
TERRAIN_PBR_OFFSET_3 | integer | 18 | Terrain parameter used with llSetGroundTexture to set the UV offset vector (ignoring the Z component) for drawing terrain layer 3. Only works for PBR textures. |
TERRAIN_PBR_OFFSET_4 | integer | 19 | Terrain parameter used with llSetGroundTexture to set the UV offset vector (ignoring the Z component) for drawing terrain layer 4. Only works for PBR textures. |
Used by
llSetGroundTexturefunctionChanges the painted terrain textures on the region based on changes. The script owner must have estate management rights. Returns an integer status.