Jump to content
  • Advertisement
Sign in to follow this  

GLSL: "Binary operator types not equal"

This topic is 2446 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!