Kohi Game Engine
kheightmap_terrain_vertex Struct Reference

Represents a single vertex of a heightmap terrain. More...

#include <kheightmap_terrain.h>

Data Fields

vec3 position
 The position of the vertex. More...
 
vec3 normal
 The normal of the vertex. More...
 
vec2 texcoord
 The texture coordinate of the vertex. More...
 
vec4 colour
 The colour of the vertex. More...
 
vec4 tangent
 The tangent of the vertex. More...
 
f32 material_weights [HEIGHTMAP_TERRAIN_MAX_MATERIAL_COUNT]
 A collection of material weights for this vertex. More...
 

Detailed Description

Represents a single vertex of a heightmap terrain.

Field Documentation

◆ colour

vec4 colour

The colour of the vertex.

◆ material_weights

A collection of material weights for this vertex.

◆ normal

vec3 normal

The normal of the vertex.

◆ position

vec3 position

The position of the vertex.

◆ tangent

vec4 tangent

The tangent of the vertex.

◆ texcoord

vec2 texcoord

The texture coordinate of the vertex.


The documentation for this struct was generated from the following file: