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.
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.0 = one texture across terrain (0-1 UV maps to entire terrain, may stretch), uvScale 10.0 = ten tiles per axis (100 total tiles, high repetition but sharp detail), uvScale 0.1 = one tenth texture (zoomed in, unusual). Typical values: small terrain 1-5, medium terrain 10-20, large terrain 50-100. Affects entity texture (texture assigned via b3dEntityTexture, uvScale multiplies its coordinates). Immediate effect, per-terrain setting. Related: b3dEntityTexture assigns texture (base diffuse texture, subject to uvScale tiling), b3dCreateTerrain creates terrain (default uvScale 1.0).