feat(client): remove the lens flare effect of the flashlight
It had caused severe banding when HDR is enabled.
This commit is contained in:
parent
14de74ac1f
commit
3bda029e34
Binary file not shown.
Before Width: | Height: | Size: 13 KiB |
@ -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");
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user