Method GenerateWorldVerticesAndAlphas
- Namespace
- Pinwheel.Griffin.SplineTool
- Assembly
- Pinwheel.Polaris.Runtime.dll
GenerateWorldVerticesAndAlphas(Vector3[], float[], int, float, float)
Generate the spline mesh containing only vertices (triangle list, 3 consecutive vertices for 1 triangle) and alpha channel for each vertices. Acquire the exact vertex count for pre-allocated array with GetVerticesCount(int, float, float).
public void GenerateWorldVerticesAndAlphas(Vector3[] vertices, float[] alphas, int curviness, float width, float falloffWidth)
Parameters
vertices
Vector3[]Pre-allocated array storing all vertices.
alphas
float[]Pre-allocated array storing all alpha values.
curviness
intNumber of 'quads' for each spline segment. Higher value means more accurate spline shape.
width
floatWidth of the inner part of the spline, this region has alpha of 1.
falloffWidth
floatWidth of the outter part of the spline, this region has alpha fades from 1 to 0.