Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Absolutely not! The result is still the same! And yes, the normal map is correct because it works wonderful in GLSL as I said. The shader is correctly bound because if I remove some key word it won't execute at all.
Aye Sir... You are totally right. The shader seems to compile fine now but the program keeps crashing for some reason. I will look this "cgc" command up to help me debug in the future. Thanks again
Thanks, I didn't know the command line method - but did you really compile the SECOND shader? The second is my Cg try, the first is the original GLSL. I have already put tex2D. The program crashes before it can display any error :(