diff options
1 files changed, 2 insertions, 0 deletions
| -rw-r--r-- | Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html | 2 |
diff --git a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html index 4c68d91..f2a6986 100644 --- a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html +++ b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html @@ -175,6 +175,8 @@ }
function enableCastShadow(object) {
+ if (object.type === "AmbientLight") return;
+
if (object.children.length === 0) {
object.castShadow = true;
object.receiveShadow = true;
|
