Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for double precision vertex attributes #94

Open
simeonkr opened this issue Nov 23, 2022 · 0 comments
Open

Missing support for double precision vertex attributes #94

simeonkr opened this issue Nov 23, 2022 · 0 comments

Comments

@simeonkr
Copy link

According to https://registry.khronos.org/OpenGL-Refpages/gl4/html/glVertexAttribPointer.xhtml, vertex attributes that have a double precision type (double, dvec2, etc.) must be specified using glVertexAttribLPointer. However, the internal
setVertexAttribPointer makes use of only glVertexAttribPointer and glVertexAttribIPointer, which means that precision will be lost even if the VertexArrayDescriptor argument specifies a Double type. In fact, I found that redefining vertex attributes to be double precision (making sure to pass in the correct type to vertexAttribPointer) makes otherwise functioning code result in black screens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant