From 1506686b799d6f90f325541d8c27b1a3590be1f2 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Mon, 22 Feb 2016 15:00:08 -0800 Subject: [PATCH] Expose light surface to entityProperties --- examples/html/entityProperties.html | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/examples/html/entityProperties.html b/examples/html/entityProperties.html index 0c6e37b192..7bedb9981a 100644 --- a/examples/html/entityProperties.html +++ b/examples/html/entityProperties.html @@ -285,6 +285,7 @@ var elLightColorBlue = document.getElementById("property-light-color-blue"); var elLightIntensity = document.getElementById("property-light-intensity"); + var elLightSurfaceRadius = document.getElementById("property-light-surface-radius"); var elLightExponent = document.getElementById("property-light-exponent"); var elLightCutoff = document.getElementById("property-light-cutoff"); @@ -564,6 +565,7 @@ elLightColorBlue.value = properties.color.blue; elLightIntensity.value = properties.intensity; + elLightSurfaceRadius.value = properties.surfaceRadius; elLightExponent.value = properties.exponent; elLightCutoff.value = properties.cutoff; } else if (properties.type == "Zone") { @@ -744,6 +746,7 @@ }) elLightIntensity.addEventListener('change', createEmitNumberPropertyUpdateFunction('intensity')); + elLightSurfaceRadius.addEventListener('change', createEmitNumberPropertyUpdateFunction('surfaceRadius')); elLightExponent.addEventListener('change', createEmitNumberPropertyUpdateFunction('exponent')); elLightCutoff.addEventListener('change', createEmitNumberPropertyUpdateFunction('cutoff')); @@ -1504,12 +1507,6 @@ -
- Spot Light - - - -
Color
@@ -1525,6 +1522,18 @@
+
+
Apparent Surface Radius (falloff factor)"
+
+ +
+
+
+ Spot Light + + + +
Spot Light Exponent
@@ -1539,4 +1548,4 @@
- \ No newline at end of file +