SET MATRIX TEXTURE This command will set different texture modes used by the specified matrix.
Syntax
    SET MATRIX TEXTURE Matrix Number, Texture Mode, Mip Mode
Parameters
    Matrix Number
Integer The matrix number
    Texture Mode
Integer Setting the Texture Wrap Mode to zero will use the default wrap mode which repeats the pattern of the texture over and over, a mode of one will mirror the texture to create a seamless texture pattern and a mode of two will set clamping which retains the
    Mip Mode
Integer The Mipmap Generation Flag is used to ensure the image has a mipmap texture
Returns
This command does not return a value.
Description
Every texture is painted onto a matrix using an internal set of values called UV data. This data contains a range of real numbers from zero to one. Zero specifying the top/left corner of your texture and one being the bottom/right corner of your texture. When a matrix uses UV data greater and less than this range, you are permitted a number of texture wrap modes to describe what should happen to paint these areas. Setting the Texture Wrap Mode to zero will use the default wrap mode which repeats the pattern of the texture over and over, a mode of one will mirror the texture to create a seamless texture pattern and a mode of two will set clamping which retains the colour of the last pixel at the textures edge and paint with that throughout the out of range area. The Mipmap Generation Flag is used to ensure the image has a mipmap texture. A mipmap is a texture that has many levels of detail, which the matrix can select and use based on the matrix vertex distance from the camera. Use integer values to specify the parameters.
Example Code
    ink rgb(0,255,0),0

     box 1,1,101,101

     get image 1,0,0,101,101

     position camera 0,300,0

     autocam off

     make matrix 1,1000,1000,25,25

     prepare matrix texture 1,1,1,1

     fill matrix 1,rnd(50),1

     position matrix 1,0,0,0

     set matrix texture 1,0,1

     update matrix 1

    do

    loop

    if matrix exist(1)=1 then delete matrix 1

    end
See also
MATRIX Commands Menu Index