createSmoothFlare

open fun createSmoothFlare(engine: CombatEngineAPI, origin: ShipAPI, point: Vector2f, thickness: Float, length: Float, angle: Float, fringeColor: Color, coreColor: Color)

Deprecated

Deprecated

TEMPORARILY DEPRECATED DUE TO 0.95a CHANGES, USE SHARP FLARES IN THE MEANTIME Creates smooth lensflares, more suited to thick and wide flares Can be CPU intensive for larger flares

Parameters

engine

Combat engine.

origin

Source of the Flare. Can be anything but CANNOT BE NULL.

point

Absolute coordinates of the flare.

thickness

Thickness of the flare in pixels. Work best between 24 and 128(max).

length

Rougth length of the flare's branches. Works best between 200 and 750. BEWARE OF PERFORMANCES IMPACT WITH LARGE SIZES

angle

Angle of the flare. 0 means horizontal. Remember that real Anamorphic flares are always horizontal.

fringeColor

Fringe color of the flare.

coreColor

Core color of the flare. Will have an impact on the minimal thickness.