Method RenderHeightMap
- Namespace
- Pinwheel.Griffin.SplineTool
- Assembly
- Pinwheel.Polaris.Runtime.dll
RenderHeightMap(RenderTexture, ComputeBuffer, ComputeBuffer, int, Vector4, float)
Render the spline height map on a texture. It contains value in [0,1] relative to [0,maxHeight].
public static void RenderHeightMap(RenderTexture targetRt, ComputeBuffer worldTrianglesBuffer, ComputeBuffer alphasBuffer, int vertexCount, Vector4 worldBounds, float maxHeight)
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.
maxHeight
floatMaximum height level. Usually the terrain's max height.
- See Also