-- 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: fcf4984aa09e05447d3b17afc03bab3c77609bd5: path_to: revision_to:
commit fcf4984aa09e05447d3b17afc03bab3c77609bd5 Author: James Baicoianu <james_github@baicoianu.com> Date: Thu Jul 20 14:56:47 2017 -0700 Shadow disabled by default diff --git a/scripts/januslight.js b/scripts/januslight.js
--- a/scripts/januslight.js +++ b/scripts/januslight.js @@ -7,7 +7,7 @@ elation.require(['janusweb.janusbase'], function() { light_intensity: { type: 'float', default: 100, set: this.updateLight }, light_cone_angle: { type: 'float', default: 0, set: this.updateLight }, light_cone_exponent: { type: 'float', default: 1, set: this.updateLight }, - light_shadow: { type: 'boolean', default: true, set: this.updateLight }, + light_shadow: { type: 'boolean', default: false, set: this.updateLight }, }); } this.createObject3D = function() { @@ -48,7 +48,7 @@ elation.require(['janusweb.janusbase'], function() { } this.updateLight = function() { if (this.light) { - //this.light.intensity = this.light_intensity / 100; + this.light.intensity = this.light_intensity / 100; var avgscale = (this.scale.x + this.scale.y + this.scale.z) / 3; this.light.color.copy(this.color); //this.light.color.multiplyScalar(this.light_intensity * avgscale * avgscale); @@ -64,8 +64,8 @@ elation.require(['janusweb.janusbase'], function() { this.light.shadow.camera.far = 120; this.light.shadow.camera.fov = 50; } - this.getProxyObject = function() { - var proxy = elation.engine.things.janusobject.extendclass.getProxyObject.call(this); + this.getProxyObject = function(classdef) { + var proxy = elation.engine.things.janusobject.extendclass.getProxyObject.call(this, classdef); proxy._proxydefs = { light_range: [ 'property', 'light_range'], light_intensity: [ 'property', 'light_intensity'],
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 16:55:29 2024