From 8c0370224ebfd45df215b6191ff4c1c32bbde4f0 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Fri, 30 Sep 2022 22:59:20 +0200 Subject: [PATCH] z-compression fixed --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 36a7cca..2551d44 100644 --- a/index.html +++ b/index.html @@ -844,7 +844,7 @@ function tst(){ scale = 50// should be a variable instead e.setAttribute("scale", visible ? ".05 .05 .05" : ".1 .1 .1" ) var pos = AFRAME.utils.coordinates.parse( e.getAttribute("position") ) - visible ? pos.z *= scale : pos.z /= scale // might be the opposite but anyway give the principle + //visible ? pos.z *= scale : pos.z /= scale // might be the opposite but anyway give the principle e.setAttribute("position", AFRAME.utils.coordinates.stringify(pos)) // should actually be just for src, not for text notes... even though could be interesting })