Use new let syntax for multiple returns.
This commit is contained in:
parent
c636e0e787
commit
525b9e33eb
46 changed files with 143 additions and 244 deletions
|
|
@ -145,8 +145,7 @@ extend Class SWWMHandler
|
|||
Vector3 worlddir = vel/spd;
|
||||
PPShader.SetUniform1f("ZoomBlur","Fade",clamp((spd-20.)/60.,0.,1.));
|
||||
double str = min(spd/40.,15.);
|
||||
Vector3 x, y, z;
|
||||
[x, y, z] = SWWMUtility.GetAxes(e.ViewAngle,e.ViewPitch,e.ViewRoll);
|
||||
let [x, y, z] = SWWMUtility.GetAxes(e.ViewAngle,e.ViewPitch,e.ViewRoll);
|
||||
Vector3 reldir = (worlddir dot y, worlddir dot z, worlddir dot x);
|
||||
Vector2 centerspot = (.5+reldir.x*.5,.5+reldir.y*.5);
|
||||
if ( reldir.z < 0 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue