The attached patch improves the es2gears.c gears demo by: * Refactoring and making more readable the way gears are drawn. * Providing correct normals for the gear surfaces (so that lighting works correctly). * Adding comments.
Created attachment 36572 [details] [review] Improve es2gears.c gears demo
Created attachment 36993 [details] [review] Improve es2gears.c gears demo (version 2) Improve GLES2 port: * Refactor gear drawing. * Use correct normals for surfaces. * Improve shader. * Use perspective projection transformation. * Add FPS count. * Add comments.
This looks good. I've committed v2 as bf546ba0e51423841f063cac5826faf85465ce1e. (You may use "git format-patch HEAD^" to generate the patch next time to retain the author/commit message.)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.