alexlarsson / gthree

Gthree is a GObject/Gtk+ port of three.js
MIT License
84 stars 13 forks source link

Backport negative scale handling for backface culling #75

Open alexlarsson opened 4 years ago

alexlarsson commented 4 years ago

It turns out that three.js has some special code to handle negative scaling in the backface culling code. If the determinant of the transform matrix is negative it auto-flips back and front faces. If this support is backported, we should also revert https://github.com/alexlarsson/gthree/commit/d33040a85f83efb258f7c7e562b23e22c8d507bb