-- 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: 61a00c5028c55768f3600ab0dbcb34a19f19787a: path_to: revision_to:
commit 61a00c5028c55768f3600ab0dbcb34a19f19787a Author: James Baicoianu <james_github@baicoianu.com> Date: Tue Mar 10 23:45:12 2020 -0700 Added attribute comments diff --git a/scripts/januslight.js b/scripts/januslight.js
--- a/scripts/januslight.js +++ b/scripts/januslight.js @@ -4,14 +4,14 @@ elation.require(['janusweb.janusbase'], function() { elation.engine.things.januslight.extendclass.postinit.call(this); this.defineProperties({ light_directional: { type: 'bool', default: false, set: this.updateLight }, - light_range: { type: 'float', default: 10, set: this.updateLight }, - light_intensity: { type: 'float', default: 10, set: this.updateLight }, - light_cone_angle: { type: 'float', default: 0, set: this.updateLight }, + light_range: { type: 'float', default: 0, set: this.updateLight, min: 0, comment: 'Max distance at which light can affect objects' }, + light_intensity: { type: 'float', default: 10, set: this.updateLight, comment: 'Light brightness' }, + light_cone_angle: { type: 'float', default: 0, set: this.updateLight, min: 0, max: 1, comment: 'Light cone shape. 0 = directional, 1 = point light, anything inbetween is a spotlight' }, light_cone_exponent: { type: 'float', default: 1, set: this.updateLight }, - light_penumbra: { type: 'float', default: 1, set: this.updateLight }, - light_decay: { type: 'float', default: 1, set: this.updateLight }, + light_penumbra: { type: 'float', default: 1, set: this.updateLight, min: 0, max: 1, comment: 'Spotlight fall-off. 0 is crisp, 1 is smooth' }, + light_decay: { type: 'float', default: 2, set: this.updateLight, comment: 'The amount the light dims along the distance of the light. Default is 1. For physically correct lighting, set this to 2.' }, light_target: { type: 'object', set: this.updateLightTarget }, - light_shadow: { type: 'boolean', default: false, set: this.updateLight }, + light_shadow: { type: 'boolean', default: false, set: this.updateLight, comment: 'Light casts shadows on scene' }, light_shadow_near: { type: 'float', default: .1, set: this.updateLight }, light_shadow_far: { type: 'float', set: this.updateLight }, light_shadow_bias: { type: 'float', default: .0001, set: this.updateLight },
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 18:16:34 2024