help with refraction shader

I have been trying to make a cool shader with the new curve system i made and i ran into a bug i dont understand. for some reason when i add a 3rd texture the file trips out. can anyone help. I need 3 textures 2 uvs. I got 2 images working with 2 separate uvs, but like i said when i add a texture in the texture pannel my shader tweaks out.

I need one texture for refraction, another for normal, and one more for a color map.

Attachments

simplest_form_refraction.blend (1.3 MB)

i give thanks to martinish for a lot of this, the refraction stuff was an old file of his modified. Also he helped me finish the curve formula. So i’m just kinda the shit. lol

SOLVED!!!

it was the videoTexture script interfering.

That’s a really interesting shader, and the overhead is not too high. Good work.