summaryrefslogtreecommitdiffstats
path: root/o3d/samples/o3djs/effect.js
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/samples/o3djs/effect.js')
-rw-r--r--o3d/samples/o3djs/effect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/o3d/samples/o3djs/effect.js b/o3d/samples/o3djs/effect.js
index 7c87cef..0d23889 100644
--- a/o3d/samples/o3djs/effect.js
+++ b/o3d/samples/o3djs/effect.js
@@ -1310,11 +1310,11 @@ o3djs.effect.attachStandardShader = function(pack,
// help the user get something on the screen. We check to make sure they
// are not connected to something otherwise we'll get an error.
var param = material.getParam('lightWorldPos');
- if (!param.inputConnection) {
+ if (param && !param.inputConnection) {
param.value = lightPos;
}
var param = material.getParam('lightColor');
- if (!param.inputConnection) {
+ if (param && !param.inputConnection) {
param.value = [1, 1, 1, 1];
}
return true;