From 8debb33c6ad445c8d54ea2b8812956be073d6ab2 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Tue, 28 Oct 2014 12:44:57 -0700 Subject: [PATCH] default light properties --- examples/newEditEntities.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/newEditEntities.js b/examples/newEditEntities.js index 5ecbe2459c..6369f87417 100644 --- a/examples/newEditEntities.js +++ b/examples/newEditEntities.js @@ -342,7 +342,16 @@ var toolBar = (function () { type: "Light", position: position, dimensions: { x: DEFAULT_DIMENSION, y: DEFAULT_DIMENSION, z: DEFAULT_DIMENSION }, - color: { red: 255, green: 0, blue: 0 } + isSpotlight: false, + diffuseColor: { red: 255, green: 255, blue: 255 }, + ambientColor: { red: 255, green: 255, blue: 255 }, + specularColor: { red: 0, green: 0, blue: 0 }, + + constantAttenuation: 1, + linearAttenuation: 0, + quadraticAttenuation: 0, + exponent: 0, + cutoff: 180, // in degrees }); } else { print("Can't create Light: Light would be out of bounds.");