How do I perform bit operations in glsl?
Using the regular C style bitwise operators |, &, ^, or ! does not work
|
&
^
!
You need to put either
#version 130
or
#extension GL_EXT_gpu_shader4 : enable
in the top of your shader to get access to the bit operators