Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
#include "vec3.h"
|
||||
|
||||
struct Vertex {
|
||||
float u, v;
|
||||
vec3f normal, position;
|
||||
|
||||
Vertex() : u(0), v(0) {}
|
||||
explicit Vertex(const vec3f& pos) : position(pos), normal(pos.normalized()), u(0), v(0) {}
|
||||
explicit Vertex(const vec3f& pos, float U, float V) : position(pos), normal(pos.normalized()), u(U), v(V) {}
|
||||
};
|
||||
Reference in New Issue
Block a user