Approximate specularity / glossiness in metallicRoughness materials
authorDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Thu, 19 Oct 2017 16:30:32 +0000 (12:30 -0400)
committerDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Thu, 19 Oct 2017 20:21:29 +0000 (16:21 -0400)
commit89358458f080ff74b515436980ef4432c4ea039f
tree7565a9a643f5f3981e81b5e1246adb08ef6a9b6b
parenta898c1f2d1d579389d159ff1924766fcaf0a9dba
Approximate specularity / glossiness in metallicRoughness materials

Before, models (of traditional lighting models) with specularity/glossiness would be completely flat when exported to metallicRoughness. These changes approximate glossiness (as an inverse of roughness, with specular intensity as a multiplier) both reading from gltf2 and writing to gltf2.
code/glTF2Exporter.cpp
code/glTF2Importer.cpp