b3dSetTerrainDetail

Sets terrain texture UV scale (tiling factor, prevents texture stretching on large terrain). Takes entity (terrain entity handle), uvScale (UV multiplier, default 1.0). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

entity Int
uvScale Double

Returns

Void

Quick Summary

Sets terrain texture UV scale (tiling factor, prevents texture stretching on large terrain). Takes entity (terrain entity handle), uvScale (UV multiplier, default 1.0). Returns nothing.

Technical Exegesis...

Sets terrain texture UV scale (tiling factor, prevents texture stretching on large terrain). Takes entity (terrain entity handle), uvScale (UV multiplier, default 1.0). Returns nothing. Multiplies texture coordinates (UV * uvScale in shader, tiles texture across terrain). Use to tile textures (repeat texture multiple times, avoid stretching), increase detail (more tiles = more detail visible, prevents blurry textures), or match world scale (scale proportional to terrain size). uvScale 1.

Example

Example.bam
; No example implemented yet