# GLSL: "Binary operator types not equal"

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

## 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.

##### Share on other sites
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.

1. 1
Rutin
38
2. 2
3. 3
4. 4
5. 5

• 12
• 15
• 12
• 14
• 9
• ### Forum Statistics

• Total Topics
633354
• Total Posts
3011493
• ### Who's Online (See full list)

There are no registered users currently online

×

## Important Information

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!