Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit6c4de74e8739761fd0016268419f010ce6f05c47 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-11-21 19:52:31 +0200
Committer
 Syndamia <kamen@syndamia.com>
2022-11-21 19:52:31 +0200
Files68aa8926b4e5b2920eca8503bc8fab56c7102edf
uni-projects-6c4de74e8739761fd0016268419f010ce6f05c47.tar
uni-projects-6c4de74e8739761fd0016268419f010ce6f05c47.tar.gz
uni-projects-6c4de74e8739761fd0016268419f010ce6f05c47.zip
Parentc38a0381653100ecff778d408adac7205ad4a39d (diff)
[OKG/HWK2] Fixed AmbientLight warnings
1 files changed, 2 insertions, 0 deletions
-rw-r--r--Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html2
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;