-- 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: cf3dd7f9c52ccc7cc2fbfc076ac07fd0a202404b: path_to: revision_to:
commit cf3dd7f9c52ccc7cc2fbfc076ac07fd0a202404b Author: James Baicoianu <james_github@baicoianu.com> Date: Tue Aug 8 17:50:28 2017 -0700 Pass hasalpha: false for normal and specular map assets diff --git a/scripts/object.js b/scripts/object.js
--- a/scripts/object.js +++ b/scripts/object.js @@ -373,7 +373,7 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() { } if (m.normalMap) { var imagesrc = m.normalMap.sourceFile; - var asset = this.getAsset('image', imagesrc); + var asset = this.getAsset('image', imagesrc, {id: imagesrc, src: imagesrc, hasalpha: false}); if (asset) { m.normalMap = asset.getInstance(); elation.events.add(m.normalMap, 'asset_update', elation.bind(this, function(ev) { m.map = ev.data; })); @@ -388,7 +388,7 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() { elation.events.add(textureLightmap, 'asset_update', elation.bind(m, function(ev) { m.lightMap = ev.data; })); } else if (m.lightMap) { var imagesrc = m.lightMap.sourceFile; - var asset = this.getAsset('image', imagesrc); + var asset = this.getAsset('image', imagesrc, {id: imagesrc, src: imagesrc, hasalpha: false}); if (asset) { m.lightMap = asset.getInstance(); elation.events.add(m.lightMap, 'asset_update', elation.bind(this, function(ev) { m.lightMap = ev.data; }));
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 15:19:42 2024