44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.VFX;
|
||
|
|
|
||
|
|
namespace UnityEditor.VFX
|
||
|
|
{
|
||
|
|
[VFXInfo(name = "Output ParticleStrip|Line", category = "#5Output Debug", experimental = true)]
|
||
|
|
class VFXLineStripOutput : VFXAbstractParticleOutput
|
||
|
|
{
|
||
|
|
protected VFXLineStripOutput() : base(true) { }
|
||
|
|
public override string name => "Output ParticleStrip\nLine";
|
||
|
|
public override string codeGeneratorTemplate { get { return RenderPipeTemplate("VFXParticleLinesHW"); } }
|
||
|
|
public override VFXTaskType taskType { get { return VFXTaskType.ParticleLineOutput; } }
|
||
|
|
public override bool implementsMotionVector { get { return true; } }
|
||
|
|
|
||
|
|
protected override IEnumerable<string> filteredOutSettings
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
foreach (var setting in base.filteredOutSettings)
|
||
|
|
yield return setting;
|
||
|
|
|
||
|
|
yield return "cullMode";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void OnEnable()
|
||
|
|
{
|
||
|
|
base.OnEnable();
|
||
|
|
cullMode = CullMode.Off;
|
||
|
|
}
|
||
|
|
|
||
|
|
public override IEnumerable<VFXAttributeInfo> attributes
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
yield return new VFXAttributeInfo(VFXAttribute.Position, VFXAttributeMode.Read);
|
||
|
|
yield return new VFXAttributeInfo(VFXAttribute.Color, VFXAttributeMode.Read);
|
||
|
|
yield return new VFXAttributeInfo(VFXAttribute.Alpha, VFXAttributeMode.Read);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|