You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
830 B
23 lines
830 B
using System.Collections.Generic;
|
|
using UnityEngine.VFX;
|
|
|
|
namespace UnityEditor.VFX
|
|
{
|
|
class VFXExpressionStripTangent : VFXExpression
|
|
{
|
|
public VFXExpressionStripTangent() : base(VFXExpression.Flags.PerElement | VFXExpression.Flags.InvalidOnCPU) { }
|
|
|
|
public override VFXValueType valueType => VFXValueType.Float3;
|
|
public override VFXExpressionOperation operation => VFXExpressionOperation.None;
|
|
|
|
public override string GetCodeString(string[] parents)
|
|
{
|
|
return string.Format("GetStripTangent(attributes.position, instanceIndex, relativeIndexInStrip, stripData)");
|
|
}
|
|
|
|
public override IEnumerable<VFXAttributeInfo> GetNeededAttributes()
|
|
{
|
|
yield return new VFXAttributeInfo(VFXAttribute.Position, VFXAttributeMode.Read);
|
|
}
|
|
}
|
|
}
|