Skip to content
lsl.devlsl.devLSL Dev

Template:LSL Constants/GroundTexture

Constant Format Description
TERRAIN_DETAIL_10 [ TERRAIN_DETAIL_#, texture_id ] Sets the texture to use for the current terrain detail layer. texture_id must be the UUID of a texture or material, or the name of a texture or material in the object's inventory. Passing NULL_KEY or an empty string will set the terrain texture to the default.
TERRAIN_DETAIL_21
TERRAIN_DETAIL_32
TERRAIN_DETAIL_43
TERRAIN_HEIGHT_RANGE_SW4 [ TERRAIN_HEIGHT_RANGE_XX, float low, float high ] Sets the height range for terrain for texture blending in the region. low is the maximum height for texture 1 and high is the minimum height for texture 4, textures 2 and 3 will mix in between these values.
TERRAIN_HEIGHT_RANGE_SE5
TERRAIN_HEIGHT_RANGE_NW6
TERRAIN_HEIGHT_RANGE_NE7
TERRAIN_PBR_SCALE_18 [ TERRAIN_PBR_SCALE_#, vector uv_scale ] Sets the UV scale used for each layer's terrain texture in repeats per meter.
  • The Z value of the vector is ignored.
  • Only works for PBR textures.
TERRAIN_PBR_SCALE_29
TERRAIN_PBR_SCALE_310
TERRAIN_PBR_SCALE_411
TERRAIN_PBR_ROTATION_112 [ TERRAIN_PBR_ROTATION_#, float rotation ] Sets the rotation of the PBR texture for each layer, in radians.
  • Only works for PBR textures.
TERRAIN_PBR_ROTATION_213
TERRAIN_PBR_ROTATION_314
TERRAIN_PBR_ROTATION_415
TERRAIN_PBR_OFFSET_116 [ TERRAIN_PBR_OFFSET_#, vector uv_offset ] Sets the UV offset for drawing each terrain layer.
  • The Z value of the vector is ignored.
  • Only works for PBR textures.
TERRAIN_PBR_OFFSET_217
TERRAIN_PBR_OFFSET_318
TERRAIN_PBR_OFFSET_419
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.