Skip to content
Snippets Groups Projects
Commit a304b8a7 authored by Tony Tung's avatar Tony Tung
Browse files

init deltaR & deltaS. added disableTuneel param in README.

parent a8203ac1
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ This will allow the CSP checks to pass that are served up by Reticulum so you ca ...@@ -62,6 +62,7 @@ This will allow the CSP checks to pass that are served up by Reticulum so you ca
- `disable_telemetry` - If `true` disables Sentry telemetry. - `disable_telemetry` - If `true` disables Sentry telemetry.
- `log_filter` - A `debug` style filter for setting the logging level. - `log_filter` - A `debug` style filter for setting the logging level.
- `debug` - If `true` performs verbose logging of Janus and NAF traffic. - `debug` - If `true` performs verbose logging of Janus and NAF traffic.
- `disableTunnel` - Tunnel vision is on by default. Disable the tunnel vision by this parameter.
## Additional Resources ## Additional Resources
......
...@@ -74,7 +74,7 @@ AFRAME.registerSystem("tunneleffect", { ...@@ -74,7 +74,7 @@ AFRAME.registerSystem("tunneleffect", {
Math.abs(r - TARGET_RADIUS) > CLAMP_RADIUS && Math.abs(r - TARGET_RADIUS) > CLAMP_RADIUS &&
Math.abs(softness - TARGET_SOFTNESS) > CLAMP_SOFTNESS Math.abs(softness - TARGET_SOFTNESS) > CLAMP_SOFTNESS
) { ) {
if (this.deltaR !== 0 && this.deltaS !== 0) { if (!this.deltaR && !this.deltaS) {
this.deltaR = TARGET_RADIUS - r; this.deltaR = TARGET_RADIUS - r;
this.deltaS = softness - TARGET_SOFTNESS; this.deltaS = softness - TARGET_SOFTNESS;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment