17 lines
556 B
C#
17 lines
556 B
C#
using GamePort.Assets;
|
|
using GamePort.Game;
|
|
|
|
namespace GamePort.Application;
|
|
|
|
/// <summary>Current Jimmy atlas is one linked material. Source114 alpha and
|
|
/// indexed0 FC blend changes affect that draw without changing pose/visibility.</summary>
|
|
public static class PlayerGadgetMaterial
|
|
{
|
|
public static void Apply(MeshDraw draw, InvisibleGadget invisible)
|
|
{
|
|
draw.Opacity = invisible.Opacity;
|
|
draw.Blend = !invisible.Active ? MeshBlend.Opaque
|
|
: invisible.ConventionalBlend ? MeshBlend.Alpha : MeshBlend.Additive;
|
|
}
|
|
}
|