Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+11
View File
@@ -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) {}
};