34 lines
674 B
C#
34 lines
674 B
C#
using Godot;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Rokojori;
|
|
|
|
[Tool]
|
|
[GlobalClass ]
|
|
public partial class LineVFXShaderPointProperties:Resource
|
|
{
|
|
[Export]
|
|
public Vector3PropertyName positionName;
|
|
|
|
[Export]
|
|
public Vector3PropertyName forwardName;
|
|
|
|
[Export]
|
|
public Vector3PropertyName upName;
|
|
|
|
[Export]
|
|
public FloatPropertyName normalizedDistance;
|
|
|
|
public void Set( MeshInstance3D mi, LinePointData data )
|
|
{
|
|
positionName.SetInstance( mi, data.GetPosition() );
|
|
forwardName.SetInstance( mi, data.GetForward() );
|
|
upName.SetInstance( mi, data.GetUp() );
|
|
|
|
normalizedDistance.SetInstance( mi, data.GetNormalizedDistance() );
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|