Browse Source

Redo light animation test cases

Jason0214 6 năm trước cách đây
mục cha
commit
0ac6c56ed9

+ 1 - 1
tests/godot_project/default_env.tres

@@ -29,7 +29,7 @@ background_color = Color( 0, 0, 0, 1 )
 background_energy = 1.0
 background_canvas_max_layer = 0
 ambient_light_color = Color( 0, 0, 0, 1 )
-ambient_light_energy = 1.0
+ambient_light_energy = 0.2
 ambient_light_sky_contribution = 1.0
 fog_enabled = false
 fog_color = Color( 0.5, 0.6, 0.7, 1 )

+ 0 - 69
tests/reference_exports/light/animation_light_type_change.escn

@@ -1,69 +0,0 @@
-[gd_scene load_steps=1 format=2]
-
-[sub_resource id=1 type="SpatialMaterial"]
-
-resource_name = "Material"
-flags_unshaded = false
-flags_vertex_lighting = false
-flags_transparent = false
-vertex_color_use_as_albedo = false
-albedo_color = Color(0.8, 0.8, 0.8, 1.0)
-subsurf_scatter_enabled = false
-
-[sub_resource id=2 type="ArrayMesh"]
-
-resource_name = "Cube"
-surfaces/0 = {
-	"material":SubResource(1),
-	"primitive":4,
-	"arrays":[
-		Vector3Array(1.0, -1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 0.999999, 1.0, 1.0, 1.0, 1.0, -0.999999, 1.0, 1.0, -0.999999, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 0.999999, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -0.999999, 1.0, -1.0, 1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 0.999999, 1.0, 1.0, 1.0, 1.0, -0.999999, 0.999999, 1.0, 1.0, 1.0, -1.0, 1.0, 0.999999, 1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0),
-		Vector3Array(2.98023e-08, -1.0, 0.0, 2.98023e-08, -1.0, 0.0, 2.98023e-08, -1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, -2.38419e-07, 0.0, 1.0, -2.38419e-07, 0.0, 1.0, -2.38419e-07, 0.0, -8.9407e-08, -4.76837e-07, 1.0, -8.9407e-08, -4.76837e-07, 1.0, -8.9407e-08, -4.76837e-07, 1.0, -1.0, -1.19209e-07, -2.38419e-07, -1.0, -1.19209e-07, -2.38419e-07, -1.0, -1.19209e-07, -2.38419e-07, 2.68221e-07, 2.38419e-07, -1.0, 2.68221e-07, 2.38419e-07, -1.0, 2.68221e-07, 2.38419e-07, -1.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 5.96047e-08, 1.0, 0.0, 5.96047e-08, 1.0, 0.0, 5.96047e-08, 1.0, 0.0, 1.0, 3.27825e-07, 5.96046e-07, 1.0, 3.27825e-07, 5.96046e-07, 1.0, 3.27825e-07, 5.96046e-07, -4.76837e-07, 1.19209e-07, 1.0, -4.76837e-07, 1.19209e-07, 1.0, -4.76837e-07, 1.19209e-07, 1.0, -1.0, -1.49012e-07, -2.38419e-07, -1.0, -1.49012e-07, -2.38419e-07, -1.0, -1.49012e-07, -2.38419e-07, 2.08616e-07, 8.9407e-08, -1.0, 2.08616e-07, 8.9407e-08, -1.0, 2.08616e-07, 8.9407e-08, -1.0),
-		null, ; No Tangents,
-		null, ; no Vertex Colors,
-		null, ; No UV1,
-		null, ; No UV2,
-		null, ; No Bones,
-		null, ; No Weights,
-		IntArray(0, 2, 1, 3, 5, 4, 6, 8, 7, 9, 11, 10, 12, 14, 13, 15, 17, 16, 18, 20, 19, 21, 23, 22, 24, 26, 25, 27, 29, 28, 30, 32, 31, 33, 35, 34)
-	],
-	"morph_arrays":[]
-}
-
-[sub_resource id=3 type="Animation"]
-
-resource_name = "LampAction"
-step = 0.1
-length = 2.91667
-tracks/0/type = "value"
-tracks/0/path = NodePath(".:light_color")
-tracks/0/interp = 1
-tracks/0/keys = {
-	"times":PoolRealArray(0.0833333, 0.458333, 0.5, 0.541667, 0.583333, 0.625, 0.666667, 0.708333, 0.75, 0.791667, 0.833333),
-	"transitions":PoolRealArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
-	"update":0,
-	"values":[Color(1.0, 1.0, 1.0, 1.0), Color(0.978978, 1.0, 0.978395, 1.0), Color(0.91571, 1.0, 0.913372, 1.0), Color(0.81284, 1.0, 0.807649, 1.0), Color(0.67829, 1.0, 0.669369, 1.0), Color(0.525868, 1.0, 0.512719, 1.0), Color(0.373445, 1.0, 0.35607, 1.0), Color(0.238896, 1.0, 0.217789, 1.0), Color(0.136026, 1.0, 0.112066, 1.0), Color(0.072758, 1.0, 0.0470439, 1.0), Color(0.0517359, 1.0, 0.0254388, 1.0)]
-}
-[node type="Spatial" name="Scene"]
-
-
-[node name="Cube" type="MeshInstance" parent="."]
-
-mesh = SubResource(2)
-visible = true
-transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
-
-[node name="Lamp" type="DirectionalLight" parent="."]
-
-light_specular = 1.0
-light_energy = 1.0
-light_color = Color(1.0, 1.0, 1.0, 1.0)
-shadow_color = Color(0.0, 0.0, 0.0, 1.0)
-transform = Transform(-0.290865, -0.771101, 0.566393, -0.0551891, 0.604525, 0.794672, -0.955171, 0.199883, -0.218391, 4.07625, 5.90386, -1.00545)
-shadow_enabled = true
-light_negative = false
-
-[node name="AnimationPlayer" type="AnimationPlayer" parent="Lamp"]
-
-root_node = NodePath("..:")
-anims/LampAction = SubResource(3)

+ 0 - 104
tests/reference_exports/light/animation_point_light_shadow.escn

@@ -1,104 +0,0 @@
-[gd_scene load_steps=1 format=2]
-
-[sub_resource id=1 type="ArrayMesh"]
-
-resource_name = "Cube001"
-surfaces/0 = {
-	"primitive":4,
-	"arrays":[
-		Vector3Array(-1.0, 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, 1.0),
-		Vector3Array(-1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -1.0, 0.0, 0.0, 1.0, 0.0),
-		null, ; No Tangents,
-		null, ; no Vertex Colors,
-		null, ; No UV1,
-		null, ; No UV2,
-		null, ; No Bones,
-		null, ; No Weights,
-		IntArray(0, 2, 1, 3, 5, 4, 6, 8, 7, 9, 11, 10, 12, 14, 13, 15, 17, 16, 0, 1, 18, 3, 4, 19, 6, 7, 20, 9, 10, 21, 12, 13, 22, 15, 16, 23)
-	],
-	"morph_arrays":[]
-}
-
-[sub_resource id=2 type="SpatialMaterial"]
-
-resource_name = "Material"
-flags_unshaded = false
-flags_vertex_lighting = false
-flags_transparent = false
-vertex_color_use_as_albedo = false
-albedo_color = Color(0.8, 0.8, 0.8, 1.0)
-subsurf_scatter_enabled = false
-
-[sub_resource id=3 type="ArrayMesh"]
-
-resource_name = "Cube"
-surfaces/0 = {
-	"material":SubResource(2),
-	"primitive":4,
-	"arrays":[
-		Vector3Array(1.0, -1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 0.999999, 1.0, 1.0, 1.0, 1.0, -0.999999, 1.0, 1.0, -0.999999, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 0.999999, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -0.999999, 1.0, -1.0, 1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 0.999999, 1.0, 1.0, 1.0, 1.0, -0.999999, 0.999999, 1.0, 1.0, 1.0, -1.0, 1.0, 0.999999, 1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0),
-		Vector3Array(2.98023e-08, -1.0, 0.0, 2.98023e-08, -1.0, 0.0, 2.98023e-08, -1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, -2.38419e-07, 0.0, 1.0, -2.38419e-07, 0.0, 1.0, -2.38419e-07, 0.0, -8.9407e-08, -4.76837e-07, 1.0, -8.9407e-08, -4.76837e-07, 1.0, -8.9407e-08, -4.76837e-07, 1.0, -1.0, -1.19209e-07, -2.38419e-07, -1.0, -1.19209e-07, -2.38419e-07, -1.0, -1.19209e-07, -2.38419e-07, 2.68221e-07, 2.38419e-07, -1.0, 2.68221e-07, 2.38419e-07, -1.0, 2.68221e-07, 2.38419e-07, -1.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 5.96047e-08, 1.0, 0.0, 5.96047e-08, 1.0, 0.0, 5.96047e-08, 1.0, 0.0, 1.0, 3.27825e-07, 5.96046e-07, 1.0, 3.27825e-07, 5.96046e-07, 1.0, 3.27825e-07, 5.96046e-07, -4.76837e-07, 1.19209e-07, 1.0, -4.76837e-07, 1.19209e-07, 1.0, -4.76837e-07, 1.19209e-07, 1.0, -1.0, -1.49012e-07, -2.38419e-07, -1.0, -1.49012e-07, -2.38419e-07, -1.0, -1.49012e-07, -2.38419e-07, 2.08616e-07, 8.9407e-08, -1.0, 2.08616e-07, 8.9407e-08, -1.0, 2.08616e-07, 8.9407e-08, -1.0),
-		null, ; No Tangents,
-		null, ; no Vertex Colors,
-		null, ; No UV1,
-		null, ; No UV2,
-		null, ; No Bones,
-		null, ; No Weights,
-		IntArray(0, 2, 1, 3, 5, 4, 6, 8, 7, 9, 11, 10, 12, 14, 13, 15, 17, 16, 18, 20, 19, 21, 23, 22, 24, 26, 25, 27, 29, 28, 30, 32, 31, 33, 35, 34)
-	],
-	"morph_arrays":[]
-}
-
-[sub_resource id=4 type="Animation"]
-
-resource_name = "LampAction"
-step = 0.1
-length = 1.25
-tracks/0/type = "value"
-tracks/0/path = NodePath(".:shadow_enabled")
-tracks/0/interp = 0
-tracks/0/keys = {
-	"times":PoolRealArray(0.0416667, 0.833333, 1.25),
-	"transitions":PoolRealArray(1, 1, 1),
-	"update":0,
-	"values":[true, false, false]
-}
-tracks/1/type = "value"
-tracks/1/path = NodePath(".:shadow_color")
-tracks/1/interp = 1
-tracks/1/keys = {
-	"times":PoolRealArray(0.0416667, 0.0833333, 0.125, 0.166667, 0.208333, 0.25, 0.291667, 0.333333, 0.375, 0.416667),
-	"transitions":PoolRealArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
-	"update":0,
-	"values":[Color(0.0, 0.0, 0.0, 1.0), Color(0.00076126, 0.00840977, 0.000572418, 1.0), Color(0.00304528, 0.0336417, 0.00228985, 1.0), Color(0.00671266, 0.0741558, 0.00504748, 1.0), Color(0.0113781, 0.125695, 0.00855556, 1.0), Color(0.0164115, 0.181301, 0.0123404, 1.0), Color(0.0210769, 0.23284, 0.0158485, 1.0), Color(0.0247443, 0.273354, 0.0186061, 1.0), Color(0.0270283, 0.298586, 0.0203235, 1.0), Color(0.0277896, 0.306996, 0.020896, 1.0)]
-}
-[node type="Spatial" name="Scene"]
-
-
-[node name="Cube001" type="MeshInstance" parent="."]
-
-mesh = SubResource(1)
-visible = true
-transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, -1.16055, -1.22778, 0.861728)
-
-[node name="Cube" type="MeshInstance" parent="."]
-
-mesh = SubResource(3)
-visible = true
-transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
-
-[node name="Lamp" type="OmniLight" parent="."]
-
-light_specular = 1.0
-light_energy = 1.0
-light_color = Color(1.0, 1.0, 1.0, 1.0)
-shadow_color = Color(0.0, 0.0, 0.0, 1.0)
-omni_range = 30.0
-transform = Transform(-0.290865, -0.771101, 0.566393, -0.0551891, 0.604525, 0.794672, -0.955171, 0.199883, -0.218391, 2.86902, 6.70935, -2.25395)
-shadow_enabled = true
-light_negative = false
-
-[node name="AnimationPlayer" type="AnimationPlayer" parent="Lamp"]
-
-root_node = NodePath("..:")
-anims/LampAction = SubResource(4)

+ 0 - 90
tests/reference_exports/light/animation_spot_light.escn

@@ -1,90 +0,0 @@
-[gd_scene load_steps=1 format=2]
-
-[sub_resource id=1 type="SpatialMaterial"]
-
-resource_name = "Material"
-flags_unshaded = false
-flags_vertex_lighting = false
-flags_transparent = false
-vertex_color_use_as_albedo = false
-albedo_color = Color(0.8, 0.8, 0.8, 1.0)
-subsurf_scatter_enabled = false
-
-[sub_resource id=2 type="ArrayMesh"]
-
-resource_name = "Cube"
-surfaces/0 = {
-	"material":SubResource(1),
-	"primitive":4,
-	"arrays":[
-		Vector3Array(1.0, -1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 0.999999, 1.0, 1.0, 1.0, 1.0, -0.999999, 1.0, 1.0, -0.999999, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 0.999999, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -0.999999, 1.0, -1.0, 1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 0.999999, 1.0, 1.0, 1.0, 1.0, -0.999999, 0.999999, 1.0, 1.0, 1.0, -1.0, 1.0, 0.999999, 1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0),
-		Vector3Array(2.98023e-08, -1.0, 0.0, 2.98023e-08, -1.0, 0.0, 2.98023e-08, -1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, -2.38419e-07, 0.0, 1.0, -2.38419e-07, 0.0, 1.0, -2.38419e-07, 0.0, -8.9407e-08, -4.76837e-07, 1.0, -8.9407e-08, -4.76837e-07, 1.0, -8.9407e-08, -4.76837e-07, 1.0, -1.0, -1.19209e-07, -2.38419e-07, -1.0, -1.19209e-07, -2.38419e-07, -1.0, -1.19209e-07, -2.38419e-07, 2.68221e-07, 2.38419e-07, -1.0, 2.68221e-07, 2.38419e-07, -1.0, 2.68221e-07, 2.38419e-07, -1.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 5.96047e-08, 1.0, 0.0, 5.96047e-08, 1.0, 0.0, 5.96047e-08, 1.0, 0.0, 1.0, 3.27825e-07, 5.96046e-07, 1.0, 3.27825e-07, 5.96046e-07, 1.0, 3.27825e-07, 5.96046e-07, -4.76837e-07, 1.19209e-07, 1.0, -4.76837e-07, 1.19209e-07, 1.0, -4.76837e-07, 1.19209e-07, 1.0, -1.0, -1.49012e-07, -2.38419e-07, -1.0, -1.49012e-07, -2.38419e-07, -1.0, -1.49012e-07, -2.38419e-07, 2.08616e-07, 8.9407e-08, -1.0, 2.08616e-07, 8.9407e-08, -1.0, 2.08616e-07, 8.9407e-08, -1.0),
-		null, ; No Tangents,
-		null, ; no Vertex Colors,
-		null, ; No UV1,
-		null, ; No UV2,
-		null, ; No Bones,
-		null, ; No Weights,
-		IntArray(0, 2, 1, 3, 5, 4, 6, 8, 7, 9, 11, 10, 12, 14, 13, 15, 17, 16, 18, 20, 19, 21, 23, 22, 24, 26, 25, 27, 29, 28, 30, 32, 31, 33, 35, 34)
-	],
-	"morph_arrays":[]
-}
-
-[sub_resource id=3 type="Animation"]
-
-resource_name = "LampAction"
-step = 0.1
-length = 2.5
-tracks/0/type = "value"
-tracks/0/path = NodePath(".:spot_angle")
-tracks/0/interp = 1
-tracks/0/keys = {
-	"times":PoolRealArray(1.25, 1.29167, 1.33333, 1.375, 1.41667, 1.45833, 1.5, 1.54167, 1.58333, 1.625, 1.66667),
-	"transitions":PoolRealArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
-	"update":0,
-	"values":[7.5, 7.66627, 8.16667, 8.98029, 10.0445, 11.25, 12.4555, 13.5197, 14.3333, 14.8337, 15.0]
-}
-tracks/1/type = "value"
-tracks/1/path = NodePath(".:spot_angle_attenuation")
-tracks/1/interp = 1
-tracks/1/keys = {
-	"times":PoolRealArray(2.08333, 2.125, 2.16667, 2.20833, 2.25, 2.29167, 2.33333, 2.375, 2.41667, 2.45833, 2.5),
-	"transitions":PoolRealArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
-	"update":0,
-	"values":[1.25, 1.22455, 1.15385, 1.05482, 0.948365, 0.851064, 0.771871, 0.713281, 0.674157, 0.652157, 0.645161]
-}
-tracks/2/type = "value"
-tracks/2/path = NodePath(".:spot_range")
-tracks/2/interp = 1
-tracks/2/keys = {
-	"times":PoolRealArray(0.0416667, 0.0833333, 0.125, 0.166667, 0.208333, 0.25, 0.291667, 0.333333, 0.375, 0.416667, 0.458333, 0.5, 0.541667, 0.583333, 0.625, 0.666667, 0.708333, 0.75, 0.791667, 0.833333),
-	"transitions":PoolRealArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
-	"update":0,
-	"values":[30.0, 29.9084, 29.6314, 29.1684, 28.5235, 27.7059, 26.7321, 25.6258, 24.4181, 23.1466, 21.8534, 20.5819, 19.3742, 18.2679, 17.2941, 16.4765, 15.8315, 15.3686, 15.0916, 15.0]
-}
-[node type="Spatial" name="Scene"]
-
-
-[node name="Cube" type="MeshInstance" parent="."]
-
-mesh = SubResource(2)
-visible = true
-transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
-
-[node name="Lamp" type="SpotLight" parent="."]
-
-light_specular = 1.0
-light_energy = 1.0
-light_color = Color(1.0, 1.0, 1.0, 1.0)
-shadow_color = Color(0.0, 0.0, 0.0, 1.0)
-spot_angle = 7.5
-spot_angle_attenuation = 1.25
-spot_range = 30.0
-transform = Transform(-0.290865, -0.771101, 0.566393, -0.0551891, 0.604525, 0.794672, -0.955171, 0.199883, -0.218391, 3.97706, 6.35177, -1.33297)
-shadow_enabled = true
-light_negative = false
-
-[node name="AnimationPlayer" type="AnimationPlayer" parent="Lamp"]
-
-root_node = NodePath("..:")
-anims/LampAction = SubResource(3)

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 10
tests/reference_exports/light/animation_spot_light_transform.escn


+ 22 - 31
tests/reference_exports/light/animation_sun.escn

@@ -2,84 +2,75 @@
 
 [sub_resource id=1 type="ArrayMesh"]
 
-resource_name = "Cube"
+resource_name = "Plane"
 surfaces/0 = {
 	"primitive":4,
 	"arrays":[
-		Vector3Array(-1.0, 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, 1.0),
-		Vector3Array(-1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, -1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -1.0, 0.0, 0.0, 1.0, 0.0),
+		Vector3Array(1.0, 0.0, 1.0, -1.0, 0.0, -1.0, -1.0, 0.0, 1.0, 1.0, 0.0, -1.0),
+		Vector3Array(0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0),
 		null, ; No Tangents,
 		null, ; no Vertex Colors,
 		null, ; No UV1,
 		null, ; No UV2,
 		null, ; No Bones,
 		null, ; No Weights,
-		IntArray(0, 2, 1, 3, 5, 4, 6, 8, 7, 9, 11, 10, 12, 14, 13, 15, 17, 16, 0, 1, 18, 3, 4, 19, 6, 7, 20, 9, 10, 21, 12, 13, 22, 15, 16, 23)
+		IntArray(0, 2, 1, 0, 1, 3)
 	],
 	"morph_arrays":[]
 }
 
 [sub_resource id=2 type="Animation"]
 
-resource_name = "SunAction"
+resource_name = "SunAction001"
 step = 0.1
-length = 3.33333
+length = 4.58333
 tracks/0/type = "value"
 tracks/0/path = NodePath(".:light_negative")
 tracks/0/interp = 0
 tracks/0/keys = {
-	"times":PoolRealArray(2.5, 2.91667, 3.33333),
+	"times":PoolRealArray(3.75, 4.16667, 4.58333),
 	"transitions":PoolRealArray(1, 1, 1),
 	"update":0,
-	"values":[false, true, true]
+	"values":[false, true, false]
 }
 tracks/1/type = "value"
 tracks/1/path = NodePath(".:light_specular")
 tracks/1/interp = 0
 tracks/1/keys = {
-	"times":PoolRealArray(1.66667, 2.08333),
-	"transitions":PoolRealArray(1, 1),
+	"times":PoolRealArray(2.08333, 2.5, 2.91667),
+	"transitions":PoolRealArray(1, 1, 1),
 	"update":0,
-	"values":[1.0, 0.0]
+	"values":[1.0, 0.0, 1.0]
 }
 tracks/2/type = "value"
 tracks/2/path = NodePath(".:light_energy")
 tracks/2/interp = 1
 tracks/2/keys = {
-	"times":PoolRealArray(0.833333, 0.875, 0.916667, 0.958333, 1.0, 1.04167, 1.08333, 1.125, 1.16667, 1.20833, 1.25),
-	"transitions":PoolRealArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
-	"update":0,
-	"values":[1.0, 1.08868, 1.35556, 1.78949, 2.35705, 3.0, 3.64295, 4.21051, 4.64444, 4.91132, 5.0]
-}
-tracks/3/type = "value"
-tracks/3/path = NodePath(".:light_color")
-tracks/3/interp = 1
-tracks/3/keys = {
-	"times":PoolRealArray(0.0416667, 0.0833333, 0.125, 0.166667, 0.208333, 0.25, 0.291667, 0.333333, 0.375, 0.416667),
-	"transitions":PoolRealArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
+	"times":PoolRealArray(0.0, 0.0416667, 0.0833333, 0.125, 0.166667, 0.208333, 0.25, 0.291667, 0.333333, 0.375, 0.416667, 0.458333, 0.5, 0.541667, 0.583333, 0.625, 0.666667, 0.708333, 0.75, 0.791667, 0.833333, 0.875, 0.916667, 0.958333, 1.0, 1.04167, 1.08333, 1.125, 1.16667, 1.20833, 1.25),
+	"transitions":PoolRealArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
 	"update":0,
-	"values":[Color(1.0, 1.0, 1.0, 1.0), Color(0.972876, 1.0, 0.972839, 1.0), Color(0.891497, 1.0, 0.891346, 1.0), Color(0.760829, 1.0, 0.760495, 1.0), Color(0.594602, 1.0, 0.594036, 1.0), Color(0.415261, 1.0, 0.414444, 1.0), Color(0.249034, 1.0, 0.247984, 1.0), Color(0.118366, 1.0, 0.117134, 1.0), Color(0.0369866, 1.0, 0.0356407, 1.0), Color(0.00986297, 1.0, 0.00847925, 1.0)]
+	"values":[1.0, 0.992688, 0.970082, 0.931923, 0.879461, 0.815882, 0.746055, 0.675477, 0.608971, 0.549881, 0.5, 0.452336, 0.399918, 0.34426, 0.287871, 0.234118, 0.186613, 0.14834, 0.121029, 0.105095, 0.1, 0.115518, 0.162222, 0.23816, 0.337483, 0.45, 0.562517, 0.66184, 0.737778, 0.784482, 0.8]
 }
 [node type="Spatial" name="Scene"]
 
 
-[node name="Cube" type="MeshInstance" parent="."]
+[node name="Plane" type="MeshInstance" parent="."]
 
 mesh = SubResource(1)
 visible = true
-transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
+transform = Transform(7.26935, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 7.57504, 0.109473, -0.019127, -0.081799)
 
 [node name="Sun" type="DirectionalLight" parent="."]
 
-light_specular = 0.0
-light_energy = 5.0
-light_color = Color(0.00986297, 1.0, 0.00847925, 1.0)
+light_specular = 1.0
+light_energy = 1.0
+light_color = Color(1.0, 1.0, 1.0, 1.0)
 shadow_color = Color(0.0, 0.0, 0.0, 1.0)
-transform = Transform(1.0, 0.0, 0.0, 0.0, -4.37114e-08, 1.0, 0.0, -1.0, -4.37114e-08, 0.0, 11.4136, 0.0)
+transform = Transform(0.883713, -0.407974, 0.229367, -0.443707, -0.574356, 0.687924, -0.148916, -0.709699, -0.688587, 0.0, 5.2651, -7.49279)
 shadow_enabled = false
-light_negative = true
+light_negative = false
 
 [node name="AnimationPlayer" type="AnimationPlayer" parent="Sun"]
 
 root_node = NodePath("..:")
-anims/SunAction = SubResource(2)
+anims/SunAction.001 = SubResource(2)

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 25 - 0
tests/reference_exports/light/animation_various_lights.escn


BIN
tests/test_scenes/light/animation_point_light_shadow.blend


BIN
tests/test_scenes/light/animation_spot_light.blend


BIN
tests/test_scenes/light/animation_spot_light_transform.blend


BIN
tests/test_scenes/light/animation_sun.blend


BIN
tests/test_scenes/light/animation_light_type_change.blend → tests/test_scenes/light/animation_various_lights.blend


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác