]> git.tdb.fi Git - libs/gl.git/commit
Refactor handling some material parameters in cooktorrance.glsl
authorMikko Rasa <tdb@tdb.fi>
Mon, 3 Oct 2022 20:44:46 +0000 (23:44 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 3 Oct 2022 22:24:29 +0000 (01:24 +0300)
commitc26b36bee465f16e3e3ed1b01ad613e7d2017102
tree7efe604fb24da78fb2850c7e246d044c171f8a8a
parentcdefdb4b0f94613c2b41757fb33ae155efa9a205
Refactor handling some material parameters in cooktorrance.glsl

Occlusion is now passed as a parameter to the lighting function.
Emission is handled outside of it since it's not properly a part of the
Cook-Torrance BRDF.
shaderlib/cooktorrance.glsl