feat(client): remove the lens flare effect of the flashlight

It had caused severe banding when HDR is enabled.
This commit is contained in:
yvt 2021-04-30 22:57:25 +09:00
parent 14de74ac1f
commit 3bda029e34
3 changed files with 0 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@ -293,7 +293,6 @@ namespace spades {
renderer->RegisterImage("Gfx/Ball.png");
renderer->RegisterModel("Models/Player/Dead.kv6");
renderer->RegisterImage("Gfx/Spotlight.png");
renderer->RegisterImage("Gfx/Glare.png");
renderer->RegisterModel("Models/Weapons/Spade/Spade.kv6");
renderer->RegisterModel("Models/Weapons/Block/Block2.kv6");
renderer->RegisterModel("Models/Weapons/Grenade/Grenade.kv6");

View File

@ -683,11 +683,6 @@ namespace spades {
light.type = DynamicLightTypePoint;
light.image = NULL;
renderer.AddLight(light);
// add glare
renderer.SetColorAlphaPremultiplied(MakeVector4(1, .7f, .5f, 0) * brightness * .3f);
renderer.AddSprite(*renderer.RegisterImage("Gfx/Glare.png"),
(eyeMatrix * MakeVector3(0, 0.3f, -0.3f)).GetXYZ(), .8f, 0.f);
}
Vector3 leftHand, rightHand;