Revert "remove numTexGens=7 hack. only cg wasn't able to handle more then 8 texcoords" This reverts commit 4653adecf16d9aa0cf3003386999f3d46f3c38f4. Also dx9 isn't able to hanlde more than 11 varying registers. More frustrating is the lightning issue by this commit. I don't know why it happens...