/gpuspline

GPU spline for mobile (Unity)

Primary LanguageC#

GPUSpline

A GPU accelerated 2D catmull-rom spline renderer optimized for mobile devices.

Renders hundreds of high-poly dynamic splines at 60fps on gles2 devices with low CPU usage. Spline generation is defered to the vertex phase without compute or geometry shaders.

Usage

// add a single spline
SplineBatcher.Add(Vector2[], int numVertices))
// generate the batches
SplineBatcher.Generate()
// animate the splines at runtime
SplineBatcher.Modify(Vector2[])

System Requirements

OpenGLES2.0 compatible devices or better, Unity 5.4+