2026-02-06 08:59:59 +00:00
|
|
|
using Godot;
|
|
|
|
|
|
2026-05-22 12:25:02 +00:00
|
|
|
using Rokojori.Extensions;
|
2026-02-06 08:59:59 +00:00
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
public partial class DirectionalFlareChromaticAberation:FlareChromaticAberation
|
|
|
|
|
{
|
|
|
|
|
[Export]
|
|
|
|
|
public Vector2 direction;
|
|
|
|
|
|
|
|
|
|
public override void ApplyChromaticAberation( FlareLayer.Data data )
|
|
|
|
|
{
|
|
|
|
|
var material = data.material;
|
|
|
|
|
|
|
|
|
|
ApplyChromaticAberationBase( data );
|
|
|
|
|
|
|
|
|
|
BaseFlareShader.chromaticAberationDirection.Set( material, direction );
|
|
|
|
|
BaseFlareShader.chromaticAberationDirectionTowardsCenter.Set( material, 0f );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|