Hi janbo, thanks for the additional info but i cannot get it to work.
I must have made an error but do not know where. This is what i have done;
1) create and position a 3D plane object.
2) created a file "NiceDefaultVertex.vs" in which i have copied and pasted what i think is the default vertex shader, i.e
attribute highp vec4 position;
attribute mediump vec4 color;
attribute mediump vec2 uv;
varying mediump vec2 uvVarying;
varying mediump vec4 colorVarying;
uniform highp mat4 agk_Ortho;
void main()
{
gl_Position = agk_Ortho * position;
uvVarying = uv;
colorVarying = color;
}
I may have this wrong.
3) created a file "NiceCustomFragment.ps" which contains your coding under the above heading "Not Tested glsl Code"
4) applied the following code next;
ShaderID=LoadShader("NiceDefaultVertex.vs","NiceCustomFragment.ps")
SetObjectShader(ObjID,ShaderID)
SetObjectImage(ObjID,ImgID1,0)
SetObjectImage(ObjID,ImgID2,1)
5) all files/images are in my media folder.
The object does not display at all. Are you able to tell where i have gone wrong?