Table of Contents

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 RenderTexture

The texture to render on.

worldTrianglesBuffer ComputeBuffer

The buffer containing all vertices in world space.

alphasBuffer ComputeBuffer

The buffer containing all alpha values.

vertexCount int

Number of vertex.

worldBounds Vector4

The world region to extract from, usually the terrain's bounds.

maxHeight float

Maximum height level. Usually the terrain's max height.

See Also