]> git.tdb.fi Git - libs/gl.git/commit
Flip normal if a surface faces away from the camera
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Mar 2022 21:48:17 +0000 (23:48 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Mar 2022 21:48:17 +0000 (23:48 +0200)
commit88c401224220010cb71426fafc5173661c4d48a3
tree41da391be3720c5e0ed688ae5ee1d0d367807dde
parentef2192e9f19a2c8a2735c3c2ce588e640bea46c4
Flip normal if a surface faces away from the camera

This gives correct two-sided lighting for non-closed meshes, which may
be used for tree leaves and such.
shaderlib/common.glsl