-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: janusweb action: commit revision: path_from: revision_from: 6c770e48288bee1837a7ce655b7b6527dfe73dbd: path_to: revision_to:
commit 6c770e48288bee1837a7ce655b7b6527dfe73dbd Author: James Baicoianu <james_github@baicoianu.com> Date: Tue Nov 7 18:19:36 2017 -0800 Convert material shininess into roughness diff --git a/scripts/object.js b/scripts/object.js
--- a/scripts/object.js +++ b/scripts/object.js @@ -447,7 +447,13 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() { m.reflectivity = (oldmat.reflectivity !== undefined ? oldmat.reflectivity : .5); m.roughnessMap = oldmat.specularMap; - m.roughness = (oldmat.roughness !== undefined ? oldmat.roughness : .6); + if (oldmat.roughness !== undefined) { + m.roughness = oldmat.roughness; + } else if (oldmat.shininess !== undefined) { + m.roughness = 1 - oldmat.shininess / 512; + } else { + m.roughness = 0.6; + } if (this.isUsingPBR()) { m.envMap = this.getEnvmap(); }
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 17:34:41 2024