Have you tried getting the individual red, green and blue colors in the shader using color.r, .g and .b, then do random translate while drawing your texture three times?
Hey,
Ariesloo i did almost same. it created some random effect close to rbg effect and was cool.
Thank you very much for the help.
Now i am working on multi textures and trying to move one texture and keep one constant. dont know how to do? can you put some light on it.
how do i split the fragment and vertex shader. if i just use same vertex and coordinates and make number gl_position=att*uni for each texture and try to move one texture using estranslate its not moving or rotating.
Hmm if I have multiple texture handle IDs, for each texture bind and draw, i will update the translate matrix, so each texture will have its own positions. Thus my
gl_position will be something like gl_position = matrixTranslate * vertex;
So the same fragment and vertex shader is used.
Hope it helps?