2 Replies Latest reply on Mar 13, 2010 7:21 AM by samtha

    GLSL: bit shift, logical and

    gluser

      Hello,

      unpacking values from an 32 bit unsigned integer vertex attribute does not work for me. The unpacked values are wrong resulting in visual artefacts. I am using driver version 10.2 on Linux.

      #version 150 core

      in uint packed_data;

      void main()

      {

      uvec2 position = uvec2(packed_data, packed_data >> 12u) & 0xFFFu;

      }

       

      The same code runs without any problems using a driver & gpu from another vendor.