repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 13c7079a82991730de3af3c38826c7959ccab645:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 13c7079a82991730de3af3c38826c7959ccab645
Author: James Baicoianu 
Date:   Mon Oct 4 00:04:17 2021 -0700

    Portal shader and velocity fixes

diff --git a/scripts/portal.js b/scripts/portal.js
index 2c0a4ade8bc346631948aab6fb1155a214a8a960..
index ..27a1bb4392665d5a810bf3693873acc5c0a372ab 100644
--- a/scripts/portal.js
+++ b/scripts/portal.js
@@ -106,7 +106,7 @@ elation.require(['janusweb.janusbase'], function() {
         //console.log('shader', this.shader_id, shader);
         if (shader) {
           let shadermaterial = shader.getInstance();
-          shadermaterial.uniforms = this.room.parseShaderUniforms(shader.uniforms);
+          //shadermaterial.uniforms = this.room.parseShaderUniforms(shader.uniforms);
           mat = shadermaterial;
           mat.transparent = true;
           mat.side = THREE.DoubleSide;
@@ -623,7 +623,7 @@ elation.require(['janusweb.janusbase'], function() {
       if (dot < 0) {
         this.activate();
         // FIXME - we should be transforming the user's velocity into the new room's coordinate space, but right now a portal isn't aware of what's on the other side
-        //player.vel = V(0,0,0);
+        player.vel = V(0,0,0);
       }
     }
   }, elation.engine.things.janusbase);

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