hi,just purchased the shader kit for use with my 3D engine, looked at demos and included/changed what I needed to in my editor, but when I come to apply a shader to a selected object I get an error,
here is a video showing this error:
the code to try and set the shader to the object is this:
if getrawkeypressed(KEY_X)
for n=1 to maxobjects
if object[n].selected=1
setobjectcolor(object[n].ID,object[n].r,object[n].g,object[n].b,255)
object[n].selected=0
SP_Toon_AddObject(object[n].ID,object[n].im)
SP_Outline_AddObject(object[n].ID,1) //Add the Outline effect to the Object
endif
next n
objectsselected=0
objectmaster=0
objectslave=0
endif
object[n].ID is obviously where the objects ID is stored and object[n].im the image, I supposed this is how I called the shader stuff
the demos that come along with the shaders work fine so I have no idea why
I am using
SP_Init()
SP_SetClearColor(0,128,255)
in my init function before all of this and have replaced all sync commands
Hail to the king, baby!