Hey Blink0k!
I'm not using a shader (not familiar with shaders) and I do not know what you mean by "passing it to the function". I'm just testing some stuff.
Here is a snippet of my code:
// Testing
img1 = loadimage("raw:" + getreadpath() + "projects\map01\trn2\diffuse.png")
setimageminfilter(img1, 0) : setimagemagfilter(img1, 0)
img2 = loadimage("raw:" + getreadpath() + "projects\map01\trn\detail.png")
setimageminfilter(img2, 0) : setimagemagfilter(img2, 0)
setimagewrapu(img2, 1)
setimagewrapv(img2, 1)
setobjectimage(hmap[id].obj, img1, 0)
setobjectuvscale(hmap[id].obj, 0, 1, 1)
setobjectimage(hmap[id].obj, img2, 1)
setobjectuvscale(hmap[id].obj, 1, 8, 8)
Edit:
Ohw, the object that it is applied to is a heightmap object (createobjectfromheightmap).
Any more help is much appreciated!
Regards Sph!nx