Severe problems with glsl

I’m not using C or C++, so I can’t really post any code. I was just wondering if these errors could be caused because the shader text is getting corrupted/read incorrectly? To make sure it’s not an error on my part, I’m trying to compile a vertex shader from a 3D Labs tutorial. The first is a syntax error, which makes it obvious that something is going wrong when I send the text to the card. Also, what is an invalid atom? Thanks.

 (0) : error C0000: syntax error, unexpected $end at token "<invalid atom>"
(1) : error C0501: type name expected at token "<invalid atom>" 

Make sure you still got all the newlines in there.

That’s what it was. We were loading every line directly after the last, with no new lines. Thanks. :slight_smile:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.