repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 0b766881e15c46896b638dd1d32076cf72ae9a81:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 0b766881e15c46896b638dd1d32076cf72ae9a81
Author: James Baicoianu 
Date:   Sun Oct 31 01:43:25 2021 -0700

    Portals cast shadows

diff --git a/scripts/portal.js b/scripts/portal.js
index 6bf957ff6fdf587603823d3b1bfc97c49850e1c2..
index ..8c4c8d4c9c9da17a29e9c5ab75e5a65f4257509a 100644
--- a/scripts/portal.js
+++ b/scripts/portal.js
@@ -523,6 +523,7 @@ elation.require(['janusweb.janusbase'], function() {
           textureWidth: this.mirror_texturesize,
           textureHeight: this.mirror_texturesize,
         });
+        group.castShadow = true;
         this.group = group;
         if (this.objects['3d']) {
           this.objects['3d'].add(group);
@@ -534,6 +535,7 @@ elation.require(['janusweb.janusbase'], function() {
         //var group = new THREE.Object3D();
         var group = new THREE.Mesh(box, mat);
         group.renderOrder = 10;
+        group.castShadow = true;

         if (this.draw_glow) {
           var framewidth = .05,
@@ -559,6 +561,7 @@ elation.require(['janusweb.janusbase'], function() {
           var framemat = new THREE.MeshPhongMaterial({color: 0x0000cc, emissive: 0x222222});
           var frame = new THREE.Mesh(framegeo, framemat);
           this.frame = frame;
+          frame.castShadow = true;
           group.add(frame);
         }
         this.material = mat;
@@ -567,6 +570,7 @@ elation.require(['janusweb.janusbase'], function() {

         var framemat = new THREE.MeshPhongMaterial({color: 0x0000cc, emissive: 0x222222});
         var frame = new THREE.Mesh(framegeo, framemat);
+        frame.castShadow = true;
         this.frame = frame;
         group.add(frame);

-----END OF PAGE-----