Method RenderAlphaMask
- Namespace
- Pinwheel.Griffin.SplineTool
- Assembly
- Pinwheel.Polaris.Runtime.dll
RenderAlphaMask(RenderTexture, ComputeBuffer, ComputeBuffer, int, Vector4)
Render the spline alpha mask on a texture.
public static void RenderAlphaMask(RenderTexture targetRt, ComputeBuffer worldTrianglesBuffer, ComputeBuffer alphasBuffer, int vertexCount, Vector4 worldBounds)
Parameters
targetRt
RenderTextureThe texture to render on.
worldTrianglesBuffer
ComputeBufferThe buffer containing all vertices in world space.
alphasBuffer
ComputeBufferThe buffer containing all alpha values.
vertexCount
intNumber of vertex.
worldBounds
Vector4The world region to extract from, usually the terrain's bounds.
- See Also