Skip to content

Commit 74a31a4

Browse files
committed
Set defaults for shaders
1 parent 4bcd73c commit 74a31a4

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

data/examples/corner_pin.shader

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
// Adapted from https://www.iquilezles.org/www/articles/ibilinear/ibilinear.htm
44
// and this Shadertoy example https://www.shadertoy.com/view/lsBSDm
55

6-
uniform float _DRx;
7-
uniform float _DRy;
8-
uniform float _DLx;
9-
uniform float _DLy;
10-
uniform float _TLx;
11-
uniform float _TLy;
12-
uniform float _TRx;
13-
uniform float _TRy;
6+
uniform float _DRx = 0.0;
7+
uniform float _DRy = 0.0;
8+
uniform float _DLx = 0.0;
9+
uniform float _DLy = 0.0;
10+
uniform float _TLx = 0.0;
11+
uniform float _TLy = 0.0;
12+
uniform float _TRx = 0.0;
13+
uniform float _TRy = 0.0;
1414

1515
float cross2d(float2 a, float2 b)
1616
{

data/examples/cut_rect_per_corner.shader

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ uniform int corner_tl<
55
int minimum = 0;
66
int maximum = 100;
77
int step = 1;
8-
>;
8+
> = 0;
99
uniform int corner_tr<
1010
string label = "Corner top right";
1111
string widget_type = "slider";
1212
int minimum = 0;
1313
int maximum = 100;
1414
int step = 1;
15-
>;
15+
> = 0;
1616
uniform int corner_br<
1717
string label = "Corner bottom right";
1818
string widget_type = "slider";
1919
int minimum = 0;
2020
int maximum = 100;
2121
int step = 1;
22-
>;
22+
> = 0;
2323
uniform int corner_bl<
2424
string label = "Corner bottom left";
2525
string widget_type = "slider";
2626
int minimum = 0;
2727
int maximum = 100;
2828
int step = 1;
29-
>;
29+
> = 0;
3030
uniform int border_thickness<
3131
string label = "Border thickness";
3232
string widget_type = "slider";
3333
int minimum = 0;
3434
int maximum = 100;
3535
int step = 1;
36-
>;
36+
> = 0;
3737
uniform float4 border_color;
3838
uniform float border_alpha_start<
3939
string label = "Border aplha start";

data/examples/rounded_rect2.shader

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ uniform int corner_radius<
44
int minimum = 0;
55
int maximum = 100;
66
int step = 1;
7-
>;
7+
> = 0;
88
uniform int border_thickness<
99
string label = "Border thickness";
1010
string widget_type = "slider";
1111
int minimum = 0;
1212
int maximum = 100;
1313
int step = 1;
14-
>;
14+
> = 0;
1515
uniform float4 border_color;
1616
uniform float border_alpha_start<
1717
string label = "Border alpha start";

data/examples/rounded_stroke.shader

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ uniform int corner_radius<
77
int minimum = 0;
88
int maximum = 200;
99
int step = 1;
10-
>;
10+
> = 0;
1111
uniform int border_thickness<
1212
string label = "border thickness";
1313
string widget_type = "slider";
1414
int minimum = 0;
1515
int maximum = 100;
1616
int step = 1;
17-
>;
17+
> = 0;
1818
uniform int minimum_alpha_percent<
1919
string label = "Minimum alpha percent";
2020
string widget_type = "slider";

data/examples/rounded_stroke_gradient.shader

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ uniform int corner_radius<
66
int minimum = 0;
77
int maximum = 200;
88
int step = 1;
9-
>;
9+
> = 0;
1010
uniform int border_thickness<
1111
string label = "Border thickness";
1212
string widget_type = "slider";
1313
int minimum = 0;
1414
int maximum = 100;
1515
int step = 1;
16-
>;
16+
> = 0;
1717
uniform int minimum_alpha_percent<
1818
string label = "Minimum alpha percent";
1919
string widget_type = "slider";
@@ -27,7 +27,7 @@ uniform int rotation_speed<
2727
int minimum = 0;
2828
int maximum = 100;
2929
int step = 1;
30-
>;
30+
> = 0;
3131
uniform float4 border_colorL;
3232
uniform float4 border_colorR;
3333
//uniform float color_spread = 2.0;

data/examples/zoom.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ uniform float power<
1818
float minimum = 0;
1919
float maximum = 20.0;
2020
float step = 0.001;
21-
> = 1.75;
21+
> = 1.0;
2222

2323
float4 mainImage(VertData v_in) : TARGET
2424
{

0 commit comments

Comments
 (0)