FSplineMeshSceneExtension
This class manages a texture that is used to bake down spline position values at a fixed number of texels to lower the cost of sampling these splines when deforming spline mesh vertices. Each spline in the scene is allocated an Nx1 region of the scene-wide 2D texture, and the system performs minimal updates to the texture on demand as spline mesh scene proxies are created or request updates due to changes to their parameters at run time.
Notes about texture allocation:
- The scene spline mesh texture is allocated in square pow2 tiles of size SPLINE_MESH_TEXEL_WIDTH^2.
- Tiles are encoded in Morton order so that the texture can be resized as the upper bound grows or shrinks without changing the assigned texture coordinate of registered spline meshes.
- Defragmentation of the texture will occur if the texture could be 1/4 the size of the current texture size when tightly allocated.