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

renamed unit to ratio.

parent d9c195d4
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,8 @@ AFRAME.registerSystem("tunneleffect", {
this.deltaR = this.targetRadius - r;
this.deltaS = softness - this.targetSoftness;
}
const unit = this.dt / this.fadeTimeoutMs;
this._updateVignettePass(r + this.deltaR * unit, softness - this.deltaS * unit, this.opacity);
const ratio = this.dt / this.fadeTimeoutMs;
this._updateVignettePass(r + this.deltaR * ratio, softness - this.deltaS * ratio, this.opacity);
} else {
this._exitTunnel();
}
......
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