fixing template bracket issues
fix std::bitset method
fix glLight attenuation bad values by filtering before glcall