GLSL: "Binary operator types not equal"

Started by
0 comments, last by Vincent_M 12 years, 7 months ago
I keep getting this weird error from my shader's compiler:
[font="Arial"]Binary operator types not equal[/font]

I had some defined preprocessors at the beginning of my shader for turning pieces of my code on and off. For some reason, whenever I commend out my "#define NORMAL_MAPPING" line, I get that error above. Also, when I comment out all of the code that'll compile with NORMAL_MAPPING defined and leave the "#define NORMAL_MAPPING", it'll do the same thing.

I googled around, and found no results so far.
Advertisement
I jumped the gun on this one. I thought it had to do with preprocessors, but in fact, it had to do with using a vec3 operation using a vec4 operand. This if the first time compiling my shader using this preprocessor configuration, so I'm just now catching it.

This topic is closed to new replies.

Advertisement