found bug, on shoaders that dont use varying values they are optimised away :)
fnally palette rendering is working, I was chacing non bugs but I learned a lot about shaders and their parameters ;)