Irrlicht doesnt support bitwise opporators?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Markuss
Posts: 16
Joined: Tue May 02, 2023 4:48 pm

Irrlicht doesnt support bitwise opporators?

Post by Markuss »

Im using minetests version of irrlicht and im getting

Code: Select all

 Irrlicht: GLSL (> 2.x) shader failed to compile: shaderType: 35632
2024-04-10 15:31:55: ERROR[Main]: Irrlicht: ERROR: 0:790: 'bitwise inclusive or' : not supported for this version or the enabled extensions 
ERROR: 0:790: '' : compilation terminated 
when I try to do any logical or | bit shifting << etc.

Any idea how I can get those? or work around not having them?
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Irrlicht doesnt support bitwise opporators?

Post by CuteAlien »

Note this is about shaders, not directly Irrlicht. I'm not sure when you get that error (seeing the shader code might help). But from what I can see on google it might not be supported by ES1 and ES2 - which are the only drivers Irrlicht supports so far in case you work with GL ES.

If it's not about GL ES but about desktop OpenGL then maybe it's not supported by all GLSL versions? Then you could try switching your shader to another version. You can do that by adding a line requesting a certain shader version in the first line of your shader (really has to be first one, nothing before it), like that (requesting 4.3 in this case):
#version 430 compatibility
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply