Skip to content
lsl.devlsl.devLSL Dev

GroundTextureParam

Constants in the GroundTextureParam enum.

All constant groups

At a glance, from the LSL definitions
// 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

ConstantTypeValueDescription
TERRAIN_DETAIL_1integer0Terrain 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_2integer1Terrain 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_3integer2Terrain 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_4integer3Terrain 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

ConstantTypeValueDescription
TERRAIN_HEIGHT_RANGE_SWinteger4Terrain 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_SEinteger5Terrain 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_NWinteger6Terrain 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_NEinteger7Terrain 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

ConstantTypeValueDescription
TERRAIN_PBR_SCALE_1integer8Terrain 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_2integer9Terrain 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_3integer10Terrain 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_4integer11Terrain 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_1integer12Terrain 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_2integer13Terrain 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_3integer14Terrain 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_4integer15Terrain 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_1integer16Terrain 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_2integer17Terrain 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_3integer18Terrain 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_4integer19Terrain 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