[update] Allowed the standalone version of sjplayer to load a script file.

This commit is contained in:
2019-10-06 00:00:00 +00:00
parent f35bd8cef6
commit a85dcb8f3e
3 changed files with 10 additions and 23 deletions

View File

@@ -152,7 +152,7 @@ class CircleElementProgram {
float r = length(uv_);
float w = 1 - weight_;
return
smoothstep(w, w+smooth_, r) *
smoothstep(w-smooth_, w, r) *
(1 - smoothstep(1-smooth_, 1, r));
}

View File

@@ -28,9 +28,9 @@ class CircleElementScheduledController :
element_.alive = true;
element_.damage = 0;
element_.nearness_coe = 0;
element_.matrix = mat3.identity;
element_.matrix = mat3.identity.transposed;
element_.weight = 1;
element_.smooth = 0;
element_.smooth = 0.01;
element_.color = vec4(1, 1, 1, 1);
}
override void FinalizeOperation(ref in ParametersBlock params) {