Skip to content

Commit 6a9bb96

Browse files
authored
Merge pull request #332 from t-karcher/visual-script-patch
Visual Script demos converted to and tested with V3.1
2 parents 4bb717c + 626b917 commit 6a9bb96

19 files changed

+100
-326
lines changed

visual_script/circle_pop/Main.tscn

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,9 @@
33
[ext_resource path="res://Main.vs" type="Script" id=1]
44

55
[node name="Main" type="Node2D"]
6-
76
script = ExtResource( 1 )
87

9-
[node name="Timer" type="Timer" parent="." index="0"]
10-
11-
process_mode = 1
12-
wait_time = 1.0
13-
one_shot = false
8+
[node name="Timer" type="Timer" parent="."]
149
autostart = true
1510

1611
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
17-
18-

visual_script/circle_pop/Main.vs

-177 Bytes
Binary file not shown.
Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,15 @@
11
[gd_resource type="Environment" load_steps=2 format=2]
22

33
[sub_resource type="ProceduralSky" id=1]
4-
5-
radiance_size = 4
64
sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 )
75
sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 )
86
sky_curve = 0.25
9-
sky_energy = 1.0
107
ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 )
118
ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 )
129
ground_curve = 0.01
13-
ground_energy = 1.0
14-
sun_color = Color( 1, 1, 1, 1 )
15-
sun_latitude = 35.0
16-
sun_longitude = 0.0
17-
sun_angle_min = 1.0
18-
sun_angle_max = 100.0
19-
sun_curve = 0.05
2010
sun_energy = 16.0
21-
texture_size = 2
2211

2312
[resource]
24-
2513
background_mode = 2
2614
background_sky = SubResource( 1 )
27-
background_sky_custom_fov = 0.0
28-
background_color = Color( 0, 0, 0, 1 )
29-
background_energy = 1.0
30-
background_canvas_max_layer = 0
31-
ambient_light_color = Color( 0, 0, 0, 1 )
32-
ambient_light_energy = 1.0
33-
ambient_light_sky_contribution = 1.0
34-
fog_enabled = false
35-
fog_color = Color( 0.5, 0.6, 0.7, 1 )
36-
fog_sun_color = Color( 1, 0.9, 0.7, 1 )
37-
fog_sun_amount = 0.0
38-
fog_depth_enabled = true
39-
fog_depth_begin = 10.0
40-
fog_depth_curve = 1.0
41-
fog_transmit_enabled = false
42-
fog_transmit_curve = 1.0
43-
fog_height_enabled = false
44-
fog_height_min = 0.0
45-
fog_height_max = 100.0
46-
fog_height_curve = 1.0
47-
tonemap_mode = 0
48-
tonemap_exposure = 1.0
49-
tonemap_white = 1.0
50-
auto_exposure_enabled = false
51-
auto_exposure_scale = 0.4
52-
auto_exposure_min_luma = 0.05
53-
auto_exposure_max_luma = 8.0
54-
auto_exposure_speed = 0.5
55-
ss_reflections_enabled = false
56-
ss_reflections_max_steps = 64
57-
ss_reflections_fade_in = 0.15
58-
ss_reflections_fade_out = 2.0
59-
ss_reflections_depth_tolerance = 0.2
60-
ss_reflections_roughness = true
61-
ssao_enabled = false
62-
ssao_radius = 1.0
63-
ssao_intensity = 1.0
64-
ssao_radius2 = 0.0
65-
ssao_intensity2 = 1.0
66-
ssao_bias = 0.01
67-
ssao_light_affect = 0.0
68-
ssao_color = Color( 0, 0, 0, 1 )
69-
ssao_quality = 0
70-
ssao_blur = 3
71-
ssao_edge_sharpness = 4.0
72-
dof_blur_far_enabled = false
73-
dof_blur_far_distance = 10.0
74-
dof_blur_far_transition = 5.0
75-
dof_blur_far_amount = 0.1
76-
dof_blur_far_quality = 1
77-
dof_blur_near_enabled = false
78-
dof_blur_near_distance = 2.0
79-
dof_blur_near_transition = 1.0
80-
dof_blur_near_amount = 0.1
81-
dof_blur_near_quality = 1
82-
glow_enabled = false
83-
glow_levels/1 = false
84-
glow_levels/2 = false
85-
glow_levels/3 = true
86-
glow_levels/4 = false
87-
glow_levels/5 = true
88-
glow_levels/6 = false
89-
glow_levels/7 = false
90-
glow_intensity = 0.8
91-
glow_strength = 1.0
92-
glow_bloom = 0.0
93-
glow_blend_mode = 2
94-
glow_hdr_threshold = 1.0
95-
glow_hdr_scale = 2.0
96-
glow_bicubic_upscale = false
97-
adjustment_enabled = false
98-
adjustment_brightness = 1.0
99-
adjustment_contrast = 1.0
100-
adjustment_saturation = 1.0
10115

visual_script/circle_pop/icon.png.import

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
importer="texture"
44
type="StreamTexture"
55
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
69

710
[deps]
811

912
source_file="res://icon.png"
10-
source_md5="4f69473a554caeabeda4827caba7e43c"
11-
1213
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
13-
dest_md5="bd63fab8564802fca5c52c1931c44459"
1414

1515
[params]
1616

1717
compress/mode=0
1818
compress/lossy_quality=0.7
1919
compress/hdr_mode=0
20+
compress/bptc_ldr=0
2021
compress/normal_map=0
2122
flags/repeat=0
2223
flags/filter=true
@@ -26,6 +27,7 @@ flags/srgb=2
2627
process/fix_alpha_border=true
2728
process/premult_alpha=false
2829
process/HDR_as_SRGB=false
30+
process/invert_color=false
2931
stream=false
3032
size_limit=0
3133
detect_3d=true

visual_script/circle_pop/project.godot

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
; [section] ; section goes between []
77
; param=value ; assign values to parameters
88

9-
config_version=3
9+
config_version=4
10+
11+
_global_script_classes=[ ]
12+
_global_script_class_icons={
13+
14+
}
1015

1116
[application]
1217

visual_script/circle_pop/white-circle.png.import

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
importer="texture"
44
type="StreamTexture"
55
path="res://.import/white-circle.png-fd9ec96f5f813bd0d459d50130c980de.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
69

710
[deps]
811

912
source_file="res://white-circle.png"
10-
source_md5="ef183336a5583f6c28c1b82e2321b5b0"
11-
1213
dest_files=[ "res://.import/white-circle.png-fd9ec96f5f813bd0d459d50130c980de.stex" ]
13-
dest_md5="66fdf50754a6d3e964afe97f9ba8934c"
1414

1515
[params]
1616

1717
compress/mode=0
1818
compress/lossy_quality=0.7
1919
compress/hdr_mode=0
20+
compress/bptc_ldr=0
2021
compress/normal_map=0
2122
flags/repeat=0
2223
flags/filter=true
@@ -26,6 +27,7 @@ flags/srgb=2
2627
process/fix_alpha_border=true
2728
process/premult_alpha=false
2829
process/HDR_as_SRGB=false
30+
process/invert_color=false
2931
stream=false
3032
size_limit=0
3133
detect_3d=true

visual_script/multitouch_view/Main.tscn

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
[ext_resource path="res://Main.vs" type="Script" id=1]
44

5-
[node name="Main" type="Node2D" index="0"]
6-
5+
[node name="Main" type="Node2D"]
76
script = ExtResource( 1 )
87

9-
-257 Bytes
Binary file not shown.
Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,15 @@
11
[gd_resource type="Environment" load_steps=2 format=2]
22

33
[sub_resource type="ProceduralSky" id=1]
4-
5-
radiance_size = 4
64
sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 )
75
sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 )
86
sky_curve = 0.25
9-
sky_energy = 1.0
107
ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 )
118
ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 )
129
ground_curve = 0.01
13-
ground_energy = 1.0
14-
sun_color = Color( 1, 1, 1, 1 )
15-
sun_latitude = 35.0
16-
sun_longitude = 0.0
17-
sun_angle_min = 1.0
18-
sun_angle_max = 100.0
19-
sun_curve = 0.05
2010
sun_energy = 16.0
21-
texture_size = 2
2211

2312
[resource]
24-
2513
background_mode = 2
2614
background_sky = SubResource( 1 )
27-
background_sky_custom_fov = 0.0
28-
background_color = Color( 0, 0, 0, 1 )
29-
background_energy = 1.0
30-
background_canvas_max_layer = 0
31-
ambient_light_color = Color( 0, 0, 0, 1 )
32-
ambient_light_energy = 1.0
33-
ambient_light_sky_contribution = 1.0
34-
fog_enabled = false
35-
fog_color = Color( 0.5, 0.6, 0.7, 1 )
36-
fog_sun_color = Color( 1, 0.9, 0.7, 1 )
37-
fog_sun_amount = 0.0
38-
fog_depth_enabled = true
39-
fog_depth_begin = 10.0
40-
fog_depth_curve = 1.0
41-
fog_transmit_enabled = false
42-
fog_transmit_curve = 1.0
43-
fog_height_enabled = false
44-
fog_height_min = 0.0
45-
fog_height_max = 100.0
46-
fog_height_curve = 1.0
47-
tonemap_mode = 0
48-
tonemap_exposure = 1.0
49-
tonemap_white = 1.0
50-
auto_exposure_enabled = false
51-
auto_exposure_scale = 0.4
52-
auto_exposure_min_luma = 0.05
53-
auto_exposure_max_luma = 8.0
54-
auto_exposure_speed = 0.5
55-
ss_reflections_enabled = false
56-
ss_reflections_max_steps = 64
57-
ss_reflections_fade_in = 0.15
58-
ss_reflections_fade_out = 2.0
59-
ss_reflections_depth_tolerance = 0.2
60-
ss_reflections_roughness = true
61-
ssao_enabled = false
62-
ssao_radius = 1.0
63-
ssao_intensity = 1.0
64-
ssao_radius2 = 0.0
65-
ssao_intensity2 = 1.0
66-
ssao_bias = 0.01
67-
ssao_light_affect = 0.0
68-
ssao_color = Color( 0, 0, 0, 1 )
69-
ssao_quality = 0
70-
ssao_blur = 3
71-
ssao_edge_sharpness = 4.0
72-
dof_blur_far_enabled = false
73-
dof_blur_far_distance = 10.0
74-
dof_blur_far_transition = 5.0
75-
dof_blur_far_amount = 0.1
76-
dof_blur_far_quality = 1
77-
dof_blur_near_enabled = false
78-
dof_blur_near_distance = 2.0
79-
dof_blur_near_transition = 1.0
80-
dof_blur_near_amount = 0.1
81-
dof_blur_near_quality = 1
82-
glow_enabled = false
83-
glow_levels/1 = false
84-
glow_levels/2 = false
85-
glow_levels/3 = true
86-
glow_levels/4 = false
87-
glow_levels/5 = true
88-
glow_levels/6 = false
89-
glow_levels/7 = false
90-
glow_intensity = 0.8
91-
glow_strength = 1.0
92-
glow_bloom = 0.0
93-
glow_blend_mode = 2
94-
glow_hdr_threshold = 1.0
95-
glow_hdr_scale = 2.0
96-
glow_bicubic_upscale = false
97-
adjustment_enabled = false
98-
adjustment_brightness = 1.0
99-
adjustment_contrast = 1.0
100-
adjustment_saturation = 1.0
10115

visual_script/multitouch_view/icon.png.import

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
importer="texture"
44
type="StreamTexture"
55
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
6+
metadata={
7+
"vram_texture": false
8+
}
69

710
[deps]
811

912
source_file="res://icon.png"
10-
source_md5="32c80f6cc647438a45ed6cc479584894"
11-
1213
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
13-
dest_md5="8c14780b1c0b5a8780dc1b2643f5bbc2"
1414

1515
[params]
1616

1717
compress/mode=0
1818
compress/lossy_quality=0.7
1919
compress/hdr_mode=0
20+
compress/bptc_ldr=0
2021
compress/normal_map=0
2122
flags/repeat=0
2223
flags/filter=true
@@ -26,6 +27,7 @@ flags/srgb=2
2627
process/fix_alpha_border=true
2728
process/premult_alpha=false
2829
process/HDR_as_SRGB=false
30+
process/invert_color=false
2931
stream=false
3032
size_limit=0
3133
detect_3d=true

0 commit comments

Comments
 (0)