ggj2020

My game project for Global Game Jam 2020!
git clone git://git.hellocld.com/ggj2020
Log | Files | Refs

commit a2b79f24a6188859ea795ba50342f4648f6e4283
parent 7cd96159f6fdd6e633274da562bf34f5d8d813bc
Author: Christopher Ray Langford <chris@hellocld.com>
Date:   Sun,  2 Feb 2020 14:32:06 -0500

Player lighting fixes

Probably the final commit for this project. I think I've learned enough
for one weekend.

Diffstat:
MPlayer/Player.tscn | 8++++++++
MWorlds/CSG_Testing/CSG VR Test.tscn | 5-----
2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Player/Player.tscn b/Player/Player.tscn @@ -16,6 +16,10 @@ script = ExtResource( 2 ) [node name="ARVRCamera" type="ARVRCamera" parent="."] +[node name="OmniLight" type="OmniLight" parent="ARVRCamera"] +light_energy = 0.25 +omni_range = 4.06088 + [node name="LeftController" type="ARVRController" parent="."] script = ExtResource( 1 ) @@ -47,6 +51,10 @@ script = ExtResource( 4 ) [node name="CollisionShape" type="CollisionShape" parent="RightController/GrabbingArea"] shape = SubResource( 2 ) +[node name="SpotLight" type="SpotLight" parent="RightController"] +spot_range = 10.0 +spot_angle = 17.2867 + [node name="PlayerPos" type="Spatial" parent="."] [connection signal="body_entered" from="LeftController/GrabbingArea" to="LeftController/GrabbingArea" method="_on_GrabbingArea_body_entered"] [connection signal="body_exited" from="LeftController/GrabbingArea" to="LeftController/GrabbingArea" method="_on_GrabbingArea_body_exited"] diff --git a/Worlds/CSG_Testing/CSG VR Test.tscn b/Worlds/CSG_Testing/CSG VR Test.tscn @@ -11,11 +11,6 @@ [node name="Player" parent="." instance=ExtResource( 2 )] -[node name="OmniLight" type="OmniLight" parent="Player"] -light_energy = 0.5 -omni_range = 15.0 -omni_attenuation = 1.41421 - [node name="Yard" type="CSGBox" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, -6 ) width = 80.0