Skip to content

Commit c7f2ea1

Browse files
taking out under score
1 parent b333e5f commit c7f2ea1

9 files changed

+27
-27
lines changed

05/cubicpulse.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ float cubicPulse( float c, float w, float x ){
1515
return 1.0 - x*x*(3.0-2.0*x);
1616
}
1717

18-
float plot(vec2 _st, float _pct){
19-
return smoothstep( _pct-0.02, _pct, _st.y) -
20-
smoothstep( _pct, _pct+0.02, _st.y);
18+
float plot(vec2 st, float pct){
19+
return smoothstep( pct-0.02, pct, st.y) -
20+
smoothstep( pct, pct+0.02, st.y);
2121
}
2222

2323
void main() {

05/expo.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ uniform vec2 u_resolution;
88
uniform vec2 u_mouse;
99
uniform float u_time;
1010

11-
float plot(vec2 _st, float _pct){
12-
return smoothstep( _pct-0.01, _pct, _st.y) -
13-
smoothstep( _pct, _pct+0.01, _st.y);
11+
float plot(vec2 st, float pct){
12+
return smoothstep( pct-0.02, pct, st.y) -
13+
smoothstep( pct, pct+0.02, st.y);
1414
}
1515

1616
void main() {

05/expstep.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ float expStep( float x, float k, float n ){
1212
return exp( -k*pow(x,n) );
1313
}
1414

15-
float plot(vec2 _st, float _pct){
16-
return smoothstep( _pct-0.01, _pct, _st.y) -
17-
smoothstep( _pct, _pct+0.01, _st.y);
15+
float plot(vec2 st, float pct){
16+
return smoothstep( pct-0.02, pct, st.y) -
17+
smoothstep( pct, pct+0.02, st.y);
1818
}
1919

2020
void main() {

05/impulse.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ float impulse( float k, float x ){
1313
return h*exp(1.0-h);
1414
}
1515

16-
float plot(vec2 _st, float _pct){
17-
return smoothstep( _pct-0.01, _pct, _st.y) -
18-
smoothstep( _pct, _pct+0.01, _st.y);
16+
float plot(vec2 st, float pct){
17+
return smoothstep( pct-0.02, pct, st.y) -
18+
smoothstep( pct, pct+0.02, st.y);
1919
}
2020

2121
void main() {

05/linear.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ uniform vec2 u_mouse;
77
uniform float u_time;
88

99
// Plot a line on Y using a value between 0.0-1.0
10-
float plot(vec2 _st, float _pct){
11-
return smoothstep( _pct-0.01, _pct, _st.y) -
12-
smoothstep( _pct, _pct+0.01, _st.y);
10+
float plot(vec2 st, float pct){
11+
return smoothstep( pct-0.02, pct, st.y) -
12+
smoothstep( pct, pct+0.02, st.y);
1313
}
1414

1515
void main() {

05/parabola.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ float parabola( float x, float k ){
1111
return pow( 4.0*x*(1.0-x), k );
1212
}
1313

14-
float plot(vec2 _st, float _pct){
15-
return smoothstep( _pct-0.01, _pct, _st.y) -
16-
smoothstep( _pct, _pct+0.01, _st.y);
14+
float plot(vec2 st, float pct){
15+
return smoothstep( pct-0.02, pct, st.y) -
16+
smoothstep( pct, pct+0.02, st.y);
1717
}
1818

1919
void main() {

05/pcurve.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ float pcurve( float x, float a, float b ){
1313
return k * pow( x, a ) * pow( 1.0-x, b );
1414
}
1515

16-
float plot(vec2 _st, float _pct){
17-
return smoothstep( _pct-0.01, _pct, _st.y) -
18-
smoothstep( _pct, _pct+0.01, _st.y);
16+
float plot(vec2 st, float pct){
17+
return smoothstep( pct-0.02, pct, st.y) -
18+
smoothstep( pct, pct+0.02, st.y);
1919
}
2020

2121
void main() {

05/smoothstep.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ uniform vec2 u_resolution;
88
uniform vec2 u_mouse;
99
uniform float u_time;
1010

11-
float plot(vec2 _st, float _pct){
12-
return smoothstep( _pct-0.01, _pct, _st.y) -
13-
smoothstep( _pct, _pct+0.01, _st.y);
11+
float plot(vec2 st, float pct){
12+
return smoothstep( pct-0.02, pct, st.y) -
13+
smoothstep( pct, pct+0.02, st.y);
1414
}
1515

1616
void main() {

05/step.frag

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ precision mediump float;
77
uniform vec2 u_resolution;
88
uniform float u_time;
99

10-
float plot(vec2 _st, float _pct){
11-
return smoothstep( _pct-0.01, _pct, _st.y) -
12-
smoothstep( _pct, _pct+0.01, _st.y);
10+
float plot(vec2 st, float pct){
11+
return smoothstep( pct-0.02, pct, st.y) -
12+
smoothstep( pct, pct+0.02, st.y);
1313
}
1414

1515
void main() {

0 commit comments

Comments
 (0)