mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 14:10:55 +03:00
WIP porting demos
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
2d/light2d_as_mask/burano.png
Normal file
BIN
2d/light2d_as_mask/burano.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 952 KiB |
23
2d/light2d_as_mask/burano.png.import
Normal file
23
2d/light2d_as_mask/burano.png.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/burano.png-893cff79ccbe972d7b1ad3e1845f81bf.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
BIN
2d/light2d_as_mask/icon.png
Normal file
BIN
2d/light2d_as_mask/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
23
2d/light2d_as_mask/icon.png.import
Normal file
23
2d/light2d_as_mask/icon.png.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
157
2d/light2d_as_mask/lightmask.tscn
Normal file
157
2d/light2d_as_mask/lightmask.tscn
Normal file
@@ -0,0 +1,157 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://burano.png" type="Texture" id=1]
|
||||
[ext_resource path="res://splat.png" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id=1]
|
||||
|
||||
blend_mode = 0
|
||||
light_mode = 2
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
|
||||
length = 4.0
|
||||
loop = true
|
||||
step = 0.1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("light1:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/keys = {
|
||||
"times": PoolFloatArray( 0, 1, 2, 3 ),
|
||||
"transitions": PoolFloatArray( -2, -2, -2, -2 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 601.028, 242.639 ), Vector2( 318.649, 327.353 ), Vector2( 381.263, 130.915 ), Vector2( 462.294, 389.968 ) ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("light2:position")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/keys = {
|
||||
"times": PoolFloatArray( 0, 1, 2, 3 ),
|
||||
"transitions": PoolFloatArray( -2, -2, -2, -2 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 196.528, 185.139 ), Vector2( 135.142, 454.013 ), Vector2( 638.105, 334.923 ), Vector2( 331.375, 101.653 ) ]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/path = NodePath("light3:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/imported = false
|
||||
tracks/2/keys = {
|
||||
"times": PoolFloatArray( 0, 1, 2, 3 ),
|
||||
"transitions": PoolFloatArray( -2, -2, -2, -2 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 442.528, 411.139 ), Vector2( 635.283, 236.8 ), Vector2( 216.215, 396.815 ), Vector2( 682.96, 294.708 ) ]
|
||||
}
|
||||
|
||||
[node name="lightmask_demo" type="Control"]
|
||||
|
||||
anchor_right = 1
|
||||
anchor_bottom = 1
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="burano" type="TextureRect" parent="."]
|
||||
|
||||
material = SubResource( 1 )
|
||||
margin_right = 800.0
|
||||
margin_bottom = 600.0
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
texture = ExtResource( 1 )
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="light1" type="Light2D" parent="."]
|
||||
|
||||
position = Vector2( 601.028, 242.639 )
|
||||
enabled = true
|
||||
editor_only = false
|
||||
texture = ExtResource( 2 )
|
||||
offset = Vector2( 0, 0 )
|
||||
scale = 1.0
|
||||
color = Color( 1, 1, 1, 1 )
|
||||
energy = 1.0
|
||||
mode = 2
|
||||
range_height = 0.0
|
||||
range_z_min = -1024
|
||||
range_z_max = 1024
|
||||
range_layer_min = 0
|
||||
range_layer_max = 0
|
||||
range_item_cull_mask = 1
|
||||
shadow_enabled = false
|
||||
shadow_color = Color( 0, 0, 0, 0 )
|
||||
shadow_buffer_size = 2048
|
||||
shadow_gradient_length = 0.0
|
||||
shadow_filter = 0
|
||||
shadow_filter_smooth = 0.0
|
||||
shadow_item_cull_mask = 1
|
||||
|
||||
[node name="light2" type="Light2D" parent="."]
|
||||
|
||||
position = Vector2( 196.528, 185.139 )
|
||||
enabled = true
|
||||
editor_only = false
|
||||
texture = ExtResource( 2 )
|
||||
offset = Vector2( 0, 0 )
|
||||
scale = 1.0
|
||||
color = Color( 1, 1, 1, 1 )
|
||||
energy = 1.0
|
||||
mode = 2
|
||||
range_height = 0.0
|
||||
range_z_min = -1024
|
||||
range_z_max = 1024
|
||||
range_layer_min = 0
|
||||
range_layer_max = 0
|
||||
range_item_cull_mask = 1
|
||||
shadow_enabled = false
|
||||
shadow_color = Color( 0, 0, 0, 0 )
|
||||
shadow_buffer_size = 2048
|
||||
shadow_gradient_length = 0.0
|
||||
shadow_filter = 0
|
||||
shadow_filter_smooth = 0.0
|
||||
shadow_item_cull_mask = 1
|
||||
|
||||
[node name="light3" type="Light2D" parent="."]
|
||||
|
||||
position = Vector2( 442.528, 411.139 )
|
||||
enabled = true
|
||||
editor_only = false
|
||||
texture = ExtResource( 2 )
|
||||
offset = Vector2( 0, 0 )
|
||||
scale = 1.0
|
||||
color = Color( 1, 1, 1, 1 )
|
||||
energy = 1.0
|
||||
mode = 2
|
||||
range_height = 0.0
|
||||
range_z_min = -1024
|
||||
range_z_max = 1024
|
||||
range_layer_min = 0
|
||||
range_layer_max = 0
|
||||
range_item_cull_mask = 1
|
||||
shadow_enabled = false
|
||||
shadow_color = Color( 0, 0, 0, 0 )
|
||||
shadow_buffer_size = 2048
|
||||
shadow_gradient_length = 0.0
|
||||
shadow_filter = 0
|
||||
shadow_filter_smooth = 0.0
|
||||
shadow_item_cull_mask = 1
|
||||
|
||||
[node name="anim" type="AnimationPlayer" parent="."]
|
||||
|
||||
playback_process_mode = 1
|
||||
playback_default_blend_time = 0.0
|
||||
root_node = NodePath("..")
|
||||
anims/maskmotion = SubResource( 2 )
|
||||
playback/active = true
|
||||
playback/speed = 1.0
|
||||
blend_times = [ ]
|
||||
autoplay = "maskmotion"
|
||||
|
||||
|
||||
10
2d/light2d_as_mask/project.godot
Normal file
10
2d/light2d_as_mask/project.godot
Normal file
@@ -0,0 +1,10 @@
|
||||
[application]
|
||||
|
||||
icon = "res://icon.png"
|
||||
main_scene = "res://lightmask.tscn"
|
||||
name = "Using Lights As Mask"
|
||||
|
||||
[rasterizer]
|
||||
|
||||
shadow_filter = 3
|
||||
|
||||
BIN
2d/light2d_as_mask/splat.png
Normal file
BIN
2d/light2d_as_mask/splat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
23
2d/light2d_as_mask/splat.png.import
Normal file
23
2d/light2d_as_mask/splat.png.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/splat.png-a41a35966004eec2e8a20d517d1ec4bb.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
Reference in New Issue
Block a user