Sorry, its not a problem about people not having problems, its that everyone is having problems, no one I know converts C to C-lite, and very few in the community mess with shaders expertly enough to be able to explain it to others. I'm sorry that I can't help, but perhaps you should adopting another shader pre-built in C-light, I admit I can barely understand those as it is. So I can't explain you code at all. If I had to make a guess, it sounds like your error message is telling you it doesn't recognize the values your giving it. There are predetermined values that must be set, and retrieved for and from the engine. I haven't seen practically any of your code before so I suggest searching for these keyterms, but I could be way off.