We’ve gotten creative with shaders and are packing information into bits of the vertex position’s Y component (since for us Y == 0, always for these objects). So we’re using the Y as a 16-bit integer value, and are wanting to extract information from these bits.
But bitwise operators are only supported in OpenGL ES 3.0 and above. When we use UrhoSharp (based on Urho3D 1.9.67) - it gives us an error for all bitwise ops saying “bit-wise operator supported in GLSL ES 3.00 and above” and won’t allow it.
Is there a way to enable GLSL 3.0 mode with UrhoSharp?
EDIT: Eugene provided the actual answer to my question, which is that GLSL ES 3 is not supported via UrhoSharp (or even Urho3D at this point). And then Lysogen’s answer is marked as solution, because this is the algorithm that we needed to use in lieu of the bitwise operators.