diff options
| Commit | 6c4de74e8739761fd0016268419f010ce6f05c47 (patch) | |
|---|---|---|
| Author | 2022-11-21 19:52:31 +0200 | |
| Committer | 2022-11-21 19:52:31 +0200 | |
| Files | 68aa8926b4e5b2920eca8503bc8fab56c7102edf | |
| uni-projects-6c4de74e8739761fd0016268419f010ce6f05c47.tar uni-projects-6c4de74e8739761fd0016268419f010ce6f05c47.tar.gz uni-projects-6c4de74e8739761fd0016268419f010ce6f05c47.zip | ||
| Parent | c38a0381653100ecff778d408adac7205ad4a39d (diff) | |
[OKG/HWK2] Fixed AmbientLight warnings
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;
|
