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.
 
 
 
 

43 lines
1.5 KiB

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);
}
}
}
}