Quote: "Also, can't you only apply one shader to an object, or something like that?"
I am only trying to apply one shader, just trying to use the one in TERSCULPT instead of GG's original one. I am using some of the code from TERSCULPT_Engine, the load images and shader stuff, and trying to apply that to an advanced terrain similar to the way GG's was applied in his example. If that makes sense. I am not sure if the problem is because in TERSCULPT there are images 1 - 6 loaded and used to texture the terrain,
dim img_tex(6)
load image "Environmentgrass.png",1 : img_tex(1)=1
load image "environmentsand.png",2 : img_tex(2)=2
load image "environmentpatchygrass.png",3 : img_tex(3)=3
load image "environmentrockface.png",4 : img_tex(4)=6
load image "environmentmud.png",5 : img_tex(5)=5
load image "environmentpath.png",6 : img_tex(6)=4
texture object tob,0,1
texture object tob,1,2
texture object tob,2,3
texture object tob,3,4
texture object tob,4,5
texture object tob,5,6
but there are also images 10 and 11 used to texture the terrain too, and these images are made from memblocks.
texture object tob,6,10
texture object tob,7,11
I think these must be the 2 colormasks and without them the shader is not going to work properly. How I would make these colormasks when using an advanced terrain, I have no idea. I'll keep experimenting.
EDIT:- I am usually a bit slow ... got the function convert_termap() to create the colourmask images for me and the shader is now working.