Table of Contents

Method WorldPointToUV

Namespace
Pinwheel.Griffin
Assembly
Pinwheel.Polaris.Runtime.dll

WorldPointToUV(Vector3)

Convert a point in world space to terrain UV [0-1] space.

public Vector2 WorldPointToUV(Vector3 point)

Parameters

point Vector3

World position, Y component will be omitted.

Returns

Vector2

The UV position for texture sampling.