Lighting on Toyland
This commit is contained in:
parent
0751ecf677
commit
a3b77a734e
3 changed files with 12 additions and 4 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
|
@ -12,6 +12,7 @@ var gravity = ProjectSettings.get_setting("physics/3d/default_gravity")
|
|||
@onready var camera := $CollisionShape3D/Neck/Camera3D
|
||||
@onready var teddyAuthority = get_multiplayer_authority()
|
||||
var selfTeddy
|
||||
var selfTeddyNode
|
||||
var teddyCollider
|
||||
var teddyParent
|
||||
var menuOpen = false
|
||||
|
@ -23,6 +24,7 @@ func _ready():
|
|||
Global.playingGame = true
|
||||
Global.selfTeddy = selfTeddy
|
||||
selfTeddy = self.get_path()
|
||||
selfTeddyNode = get_node(selfTeddy)
|
||||
teddyCollider = str(self.get_path()) + '/CollisionShape3D'
|
||||
teddyParent = get_node(selfTeddy).get_parent()
|
||||
Global.teddyAuthorityID = teddyAuthority
|
||||
|
|
|
@ -7,11 +7,17 @@
|
|||
[node name="toyland" type="Node3D"]
|
||||
script = ExtResource("1_vq5un")
|
||||
|
||||
[node name="sun" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.994522, -0.078408, -0.0691259, 0, 0.661312, -0.750111, 0.104528, 0.746002, 0.657689, 0, 0, 0)
|
||||
light_energy = 10.0
|
||||
shadow_enabled = true
|
||||
directional_shadow_max_distance = 1.0
|
||||
|
||||
[node name="HUD" parent="." instance=ExtResource("1_w2y7j")]
|
||||
show_behind_parent = true
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.0034906, -0.94887, 0.315647, 0, 0.315649, 0.948876, -0.999994, 0.00331215, -0.00110181, 0, 0, 0)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="toylandnocolliders" parent="." instance=ExtResource("3_uudje")]
|
||||
|
||||
[node name="sky" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.991058, 0, 0.133433, 0, 1, 0, -0.133433, 0, -0.991058, 0, 119.039, -258.031)
|
||||
light_energy = 3.75
|
||||
|
|
Loading…
Reference in a new issue