Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

glUniform1f

26 views
Skip to first unread message

bob smith

unread,
Jan 30, 2013, 1:00:33 PM1/30/13
to
Is there anything more high-precision than glUniform1f?

It takes a float, and I believe I'm seeing rounding issues.

It might be nice if there was a version that accepted a double.

Nobody

unread,
Jan 30, 2013, 8:47:36 PM1/30/13
to
Double-precision shader variables and uniforms are available in the
ARB_gpu_shader_fp64 extension, which was promoted to core in OpenGL 4.0.

http://www.opengl.org/registry/specs/ARB/gpu_shader_fp64.txt

Double-precision vertex attributes are available in the
ARB_vertex_attrib_64bit extension, which was promoted to core in OpenGL
4.1.

http://www.opengl.org/registry/specs/ARB/vertex_attrib_64bit.txt

0 new messages