16-bit floats and GL_HALF_FLOAT

后端 未结 3 1615
囚心锁ツ
囚心锁ツ 2021-01-11 18:19

I\'m looking for/writing a C++ implementation of a 16-bit floating point number to use with OpenGL vertex buffers (texture coordinates, normals, etc). Here are my requireme

3条回答
  •  梦毁少年i
    2021-01-11 18:52

    I only know of OpenEXR library that has an implementation for half. The good thing is that the implementation of half has the functions you are looking for, and it even works with NVIDIA CG toolkit.

    The bad thing is that i don't know if the half type is compatible out of the box with the opengl version you use (in theory it should be), so you should do some testing before you decide to use it.

提交回复
热议问题