Commit 207bf6a4 authored by Philip Trettner's avatar Philip Trettner

small fixes

parent 2f73ea25
......@@ -13,9 +13,9 @@ public:
const static transform Identity;
/// Directions
static tg::vec3 Forward() { return {0, 0, -1}; }
static tg::vec3 Up() { return {0, 1, 0}; }
static tg::vec3 Right() { return {1, 0, 0}; }
static tg::dir3 Forward() { return {0, 0, -1}; }
static tg::dir3 Up() { return {0, 1, 0}; }
static tg::dir3 Right() { return {1, 0, 0}; }
public:
tg::pos3 position = tg::pos3::zero;
......
......@@ -103,8 +103,8 @@ public: // gl functions with use
/// Invokes the compute shader with the given number of groups
void compute(GLuint groupsX = 1, GLuint groupsY = 1, GLuint groupsZ = 1);
void compute(tg::usize2 const& groups) { compute(groups.width, groups.height); }
void compute(tg::usize3 const& groups) { compute(groups.width, groups.height, groups.depth); }
void compute(tg::isize2 const& groups) { compute(groups.width, groups.height); }
void compute(tg::isize3 const& groups) { compute(groups.width, groups.height, groups.depth); }
/// Starts transform feedback
/// feedbackBuffer is an optional buffer that is automatically bound to GL_TRANSFORM_FEEDBACK_BUFFER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment