Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::scene::Vertex Struct Reference

#include <OxygenEngine/scene/vertex.h>

Public Member Functions

bool operator== (const Vertex &other) const
 

Public Attributes

glm::vec3 position = glm::vec3(0.0)
 
glm::vec2 tex_coords = glm::vec2(0.0)
 
glm::vec2 lm_coords = glm::vec2(0.0)
 
glm::vec3 normal = glm::vec3(0.0)
 
glm::vec3 tangent = glm::vec3(0.0)
 
glm::vec3 bitangent = glm::vec3(0.0)
 

Friends

Vertex operator* (const Vertex &lhs, const float ratio)
 
Vertex operator+ (const Vertex &lhs, const Vertex &rhs)
 

Detailed Description

Vertex for classic static meshes

Member Data Documentation

◆ bitangent

glm::vec3 oe::scene::Vertex::bitangent = glm::vec3(0.0)

surface bitangent

Note
Needed for displacement mapping

◆ lm_coords

glm::vec2 oe::scene::Vertex::lm_coords = glm::vec2(0.0)

Secondary texture coordinates, could be used as lightmap coords

◆ normal

glm::vec3 oe::scene::Vertex::normal = glm::vec3(0.0)

Surface normal

◆ position

glm::vec3 oe::scene::Vertex::position = glm::vec3(0.0)

Vertex position

◆ tangent

glm::vec3 oe::scene::Vertex::tangent = glm::vec3(0.0)

Surface tangent

◆ tex_coords

glm::vec2 oe::scene::Vertex::tex_coords = glm::vec2(0.0)

Texture coordinates


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