Skip to content

Commit

Permalink
adjust flashlight origin
Browse files Browse the repository at this point in the history
  • Loading branch information
siecvi committed Dec 22, 2024
1 parent 9a0b491 commit 808e602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Client/ClientPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ namespace spades {
// add flash light
DynamicLightParam light;
Handle<IImage> img = renderer.RegisterImage("Gfx/Spotlight.jpg");
light.origin = (eyeMatrix * MakeVector3(0, 0.3F, -0.3F)).GetXYZ();
light.origin = (eyeMatrix * MakeVector3(0.0F, 0.0F, 0.0F)).GetXYZ();
light.color = MakeVector3(1.0F, 0.7F, 0.5F) * brightness;
light.radius = 60.0F;
light.type = DynamicLightTypeSpotlight;
Expand Down

0 comments on commit 808e602

Please sign in to comment.