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