Lighting fixes:

- Re-enabled lightsprites (glowing lamp sprites on lamps).
- Limb sprites use lightsprites instead of overriding the texture (positioned correctly now).
- Fixed lights that don't cast shadows not being rendered.
This commit is contained in:
Joonas Rikkonen
2018-01-11 11:23:55 +02:00
parent bd1cd15dd4
commit 47f9900fdc
6 changed files with 59 additions and 88 deletions
@@ -120,14 +120,6 @@ namespace Barotrauma.Items.Components
#endif
IsActive = IsOn;
//foreach (XElement subElement in element.Elements())
//{
// if (subElement.Name.ToString().ToLowerInvariant() != "sprite") continue;
// light.LightSprite = new Sprite(subElement);
// break;
//}
}
public override void Update(float deltaTime, Camera cam)