Update app.py
Browse files
app.py
CHANGED
@@ -1313,9 +1313,10 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
|
|
1313 |
}
|
1314 |
parallax = this.value;
|
1315 |
rdir = BABYLON.Engine.LastCreatedScene.activeCamera.getDirection(xdir);
|
|
|
1316 |
BABYLON.Engine.LastCreatedScene.getMeshByName(\"videoDome\").position.x = parallax * rdir.x;
|
1317 |
BABYLON.Engine.LastCreatedScene.getMeshByName(\"videoDome\").position.z = parallax * rdir.z;
|
1318 |
-
this.parentNode.childNodes[2].innerText = parallax
|
1319 |
'/><span>0.0</span></span><br/>
|
1320 |
<span><label for='contrast' style='width:8em'>Contrast</label><input id='contrast' type='range' style='width:128px;height:1em;' value='1.0' min='0' max='2' step='0.001' oninput='
|
1321 |
if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
|
|
|
1313 |
}
|
1314 |
parallax = this.value;
|
1315 |
rdir = BABYLON.Engine.LastCreatedScene.activeCamera.getDirection(xdir);
|
1316 |
+
this.parentNode.childNodes[2].innerText = BABYLON.Engine.LastCreatedScene.getMeshByName(\"videoDome\").position;
|
1317 |
BABYLON.Engine.LastCreatedScene.getMeshByName(\"videoDome\").position.x = parallax * rdir.x;
|
1318 |
BABYLON.Engine.LastCreatedScene.getMeshByName(\"videoDome\").position.z = parallax * rdir.z;
|
1319 |
+
//this.parentNode.childNodes[2].innerText = parallax;
|
1320 |
'/><span>0.0</span></span><br/>
|
1321 |
<span><label for='contrast' style='width:8em'>Contrast</label><input id='contrast' type='range' style='width:128px;height:1em;' value='1.0' min='0' max='2' step='0.001' oninput='
|
1322 |
if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
|