Skip to content

Commit

Permalink
[Node] Line Strip now has adjacency option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvux committed Mar 28, 2017
1 parent e54d0c2 commit 2b0e76d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ public class DX11LineStripNode : DX11BaseVertexPrimitiveNode
[Input("Loop", DefaultValue = 0.0)]
protected IDiffSpread<bool> FLoop;

[Input("Build Adjacency", DefaultValue = 0.0)]
protected IDiffSpread<bool> FBuildAdjacency;

protected override DX11VertexGeometry GetGeom(DX11RenderContext context, int slice)
{
return context.Primitives.LineStrip3d(this.FVerts[slice].ToList(),this.FLoop[slice]);
return context.Primitives.LineStrip3d(this.FVerts[slice].ToList(), this.FLoop[slice], this.FBuildAdjacency[slice]);
}

protected override bool Invalidate()
{
return this.FVerts.IsChanged || this.FLoop.IsChanged;
return this.FVerts.IsChanged || this.FLoop.IsChanged || this.FBuildAdjacency.IsChanged;
}

protected override int GetSpreadMax(int spreadmax)
Expand Down

0 comments on commit 2b0e76d

Please sign in to comment.