You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yet here is how my shape looks: (tried a cube and a sphere) ; as you can see the faces aren't smooth maybe because of an issue with how I create the normals, but I am not sure how to debug this.
map.mp4
The text was updated successfully, but these errors were encountered:
Hello, beginner here :)
I've tried to use the examples to generate some meshes but am failing to get the result I expect.
Here is my code to generate a cube with its normals:
I set backface culling, counter-clockwise front face, GL_TRIANGLES yet I am failing to get an acceptable result when displaying.
Here are my vertex and fragment shaders: https://paste.ofcode.org/kvjs5dE3bQiUAdejYhqscW (I just used this method for spherical mapping: https://www.clicktorelease.com/blog/creating-spherical-environment-mapping-shader.html)
Yet here is how my shape looks: (tried a cube and a sphere) ; as you can see the faces aren't smooth maybe because of an issue with how I create the normals, but I am not sure how to debug this.
map.mp4
The text was updated successfully, but these errors were encountered: