Texture tiling

Blitz3D Forums/Blitz3D Programming/Texture tiling

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can use ScaleTexture on the texture you want to tile. Basically scale the texture the opposite amount you want to tile it (ScaleTexture tex, 0.25, 0.25) to tile it 4 times on the cube. An easier way to remember how much to tile it is to simply use:

ScaleTexture tex, 1.0/num_tiles, 1.0/num_tiles