Kohi Game Engine
terrain_vertex Struct Reference

#include <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 [TERRAIN_MAX_MATERIAL_COUNT]
 A collection of material weights for this vertex. More...
 

Field Documentation

◆ colour

vec4 colour

The colour of the vertex.

◆ material_weights

f32 material_weights[TERRAIN_MAX_MATERIAL_COUNT]

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: