opengl-tutorials / ogl

http://www.opengl-tutorial.org
2.69k stars 925 forks source link

Geometry shader used to verify normals of 3d object #95

Open abhilash1910 opened 4 years ago

abhilash1910 commented 4 years ago

The folder contains the vertex,geometry and fragment shaders written in GLSL code to determine whether the normals are present in a texture wrapped object and also has attributes for scaling the length of the normals drawn during rendering. If normals are not present in the wrapped texture then code throws exception and rendering stops. This can also be used to generate fur-like shader which can be used over the normal uv wrapped objects for better effects.