Skip to main content

struct Vertex

(Niantic.Lightship.Maps.Builders.Performance.Utils.Structs.Vertex)

Overview

A vertex type consisting of a position and set of UV coordinates.

struct Vertex {
// fields

readonly float3 Position;
readonly float2 UV;

// methods

Vertex(float3 pos, float2 uv);
};

Detailed Documentation

A vertex type consisting of a position and set of UV coordinates.

Fields

Position

readonly float3 Position

The Vertex 's position

UV

readonly float2 UV

The Vertex 's UV coordinates

Methods

Vertex

Vertex(float3 pos, float2 uv)

Constructor

    Parameters:

    pos - The new Vertex 's position

    uv - The new Vertex 's UV coordinates