场景画面效果优化
This commit is contained in:
@@ -12,6 +12,7 @@ const PLAYER_GROUP: String = "net_player"
|
||||
const NET_PATH: String = "/root/Net"
|
||||
|
||||
@onready var spawner: MultiplayerSpawner = $MultiplayerSpawner
|
||||
@onready var player_spawn_pos: Node3D = $PlayerSpawnPos
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -28,6 +29,7 @@ func _ready() -> void:
|
||||
## recursive=true 很关键 —— 节点 authority 不自动继承,Sync 子节点必须一起设。
|
||||
func _create_player(peer_id: int) -> Node:
|
||||
var player := player_scene.instantiate()
|
||||
player.global_position = player_spawn_pos.global_position
|
||||
player.name = str(peer_id)
|
||||
player.add_to_group(PLAYER_GROUP)
|
||||
player.set_multiplayer_authority(peer_id, true)
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
script = ExtResource("1_hyim0")
|
||||
player_scene = ExtResource("2_4f7fj")
|
||||
|
||||
[node name="PlayerSpawnPos" type="Node3D" parent="." unique_id=1214822657]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.001055, 4.8038387, -7.0077953)
|
||||
|
||||
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="." unique_id=1020023513]
|
||||
spawn_path = NodePath("..")
|
||||
|
||||
|
||||
+59
-17
@@ -6,6 +6,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://f6x6cxnaxj4s" path="res://assets/FreeLowPolyHouseInterior_NoAlpha/General/Walls/TEST_WALL.glb" id="4_vnhc7"]
|
||||
[ext_resource type="PackedScene" uid="uid://cxxl2o4g5wpx2" path="res://assets/FreeLowPolyHouseInterior_NoAlpha/General/Walls/woman.glb" id="5_7oi24"]
|
||||
[ext_resource type="PackedScene" uid="uid://bklyqsj4831ma" path="res://assets/FreeLowPolyHouseInterior_NoAlpha/General/Rug/SM_Rug_1_04.fbx" id="5_kcwpv"]
|
||||
[ext_resource type="Sky" uid="uid://bi632suyifms5" path="res://world/sky/cartoon_sky.tres" id="6_cartoon"]
|
||||
[ext_resource type="PackedScene" uid="uid://dt4wcr14jknfd" path="res://assets/Cute_Furniture_Free_glb/Separate_Assets_glb/Kitchen_Table_09.glb" id="6_mt6fc"]
|
||||
[ext_resource type="PackedScene" uid="uid://f7w6uyre6d1a" path="res://assets/Cute_Furniture_Free_glb/Separate_Assets_glb/Couch_08.glb" id="7_7n6vr"]
|
||||
[ext_resource type="PackedScene" uid="uid://6hduvpmmt22v" path="res://assets/Furniture_FREE-af040129/SM_Commode_7.glb" id="10_gb6bm"]
|
||||
@@ -158,19 +159,46 @@
|
||||
[ext_resource type="PackedScene" uid="uid://bid0g7ha0t6l6" path="res://assets/FreeLowPolyHouseInterior_NoAlpha/General/Walls/wall_White.glb" id="159_tyxef"]
|
||||
[ext_resource type="PackedScene" uid="uid://bjbkx10uyjfsh" path="res://assets/FreeLowPolyHouseInterior_NoAlpha/General/Floor/floor1.glb" id="160_cvvfq"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_theme"]
|
||||
sky_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
|
||||
ground_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
|
||||
|
||||
[sub_resource type="Sky" id="Sky_2xwvw"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_theme")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_tyxef"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_2xwvw")
|
||||
sky = ExtResource("6_cartoon")
|
||||
ambient_light_source = 3
|
||||
ambient_light_color = Color(0.3, 0.38, 0.55, 1)
|
||||
ambient_light_sky_contribution = 0.45
|
||||
ambient_light_energy = 0.5
|
||||
reflected_light_source = 2
|
||||
tonemap_mode = 3
|
||||
tonemap_exposure = 1.05
|
||||
ssao_enabled = true
|
||||
ssao_radius = 1.2
|
||||
ssao_intensity = 1.0
|
||||
ssao_detail = 0.3
|
||||
ssao_horizon = 0.05
|
||||
ssao_sharpness = 0.5
|
||||
glow_enabled = true
|
||||
glow_strength = 0.5
|
||||
glow_levels/3 = 0.6
|
||||
glow_levels/4 = 0.25
|
||||
glow_normalized = true
|
||||
glow_intensity = 0.05
|
||||
glow_hdr_threshold = 2.2
|
||||
glow_hdr_scale = 1.5
|
||||
fog_enabled = true
|
||||
fog_light_color = Color(0.72, 0.82, 0.95, 1)
|
||||
fog_light_energy = 0.8
|
||||
fog_sun_scatter = 0.1
|
||||
fog_density = 0.004
|
||||
fog_aerial_perspective = 0.3
|
||||
fog_sky_affect = 0.2
|
||||
volumetric_fog_enabled = true
|
||||
volumetric_fog_density = 0.015
|
||||
volumetric_fog_albedo = Color(0.8289096, 0.82890964, 0.82890975, 1)
|
||||
volumetric_fog_emission_energy = 0.0
|
||||
volumetric_fog_length = 62.55
|
||||
volumetric_fog_ambient_inject = 1.0
|
||||
volumetric_fog_sky_affect = 0.555
|
||||
adjustment_enabled = true
|
||||
adjustment_contrast = 1.12
|
||||
adjustment_saturation = 1.08
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_tyxef"]
|
||||
render_priority = 0
|
||||
@@ -180,9 +208,9 @@ shader = ExtResource("154_hkjiw")
|
||||
render_priority = 0
|
||||
next_pass = SubResource("ShaderMaterial_tyxef")
|
||||
shader = ExtResource("155_theme")
|
||||
shader_parameter/color = Color(0.5251013, 0.5251013, 0.5251012, 1)
|
||||
shader_parameter/color = Color(0.68, 0.68, 0.68, 1)
|
||||
shader_parameter/base_texture = ExtResource("156_2xwvw")
|
||||
shader_parameter/specular = Color(0, 0, 0, 0.5019608)
|
||||
shader_parameter/specular = Color(0.12, 0.12, 0.12, 0.45)
|
||||
shader_parameter/fresnel = Color(0, 0, 0, 0.3019608)
|
||||
shader_parameter/uv_scale = Vector2(1, 1)
|
||||
shader_parameter/uv_offset = Vector2(0, 0)
|
||||
@@ -193,8 +221,16 @@ shader_parameter/uv_offset = Vector2(0, 0)
|
||||
environment = SubResource("Environment_tyxef")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1063626102]
|
||||
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0)
|
||||
transform = Transform3D(1, 0, 0, 0, 0.60483766, 0.7963488, 0, -0.7963488, 0.60483766, 0, 6.067111, 0)
|
||||
light_color = Color(1, 0.925, 0.83, 1)
|
||||
light_energy = 0.95
|
||||
light_indirect_energy = 0.8
|
||||
light_specular = 0.0
|
||||
shadow_enabled = true
|
||||
shadow_transmittance_bias = 3.193
|
||||
directional_shadow_blend_splits = true
|
||||
directional_shadow_fade_start = 0.9
|
||||
directional_shadow_max_distance = 45.0
|
||||
|
||||
[node name="CSG" type="Node3D" parent="." unique_id=1111955109]
|
||||
|
||||
@@ -205,12 +241,18 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.7806181, 3.5406704, -1.173
|
||||
|
||||
[node name="sconce" type="SpotLight3D" parent="Light" unique_id=1610519654]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0.496, 6.8725104, 16.683495)
|
||||
light_color = Color(1, 0.77066666, 0.57, 1)
|
||||
light_energy = 2.655
|
||||
light_indirect_energy = 2.41
|
||||
light_size = 0.1
|
||||
light_specular = 1.27
|
||||
light_color = Color(1, 0.78, 0.56, 1)
|
||||
light_energy = 3.2
|
||||
light_indirect_energy = 0.8
|
||||
light_volumetric_fog_energy = 1.5
|
||||
light_size = 0.15
|
||||
light_specular = 0.6
|
||||
light_bake_mode = 1
|
||||
shadow_enabled = true
|
||||
spot_range = 12.0
|
||||
spot_attenuation = 1.2
|
||||
spot_angle = 55.0
|
||||
spot_angle_attenuation = 1.4
|
||||
|
||||
[node name="model" type="Node3D" parent="." unique_id=687260403]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user