summaryrefslogtreecommitdiff
path: root/shared_cpp/Renderer3d.cpp
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-06-17 20:44:55 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-06-17 20:44:55 -0400
commite68d14c4d5b4cced62c2148323c38e7f49292bd7 (patch)
tree9df84f2f9b4264cfcd74f0ab4738b5fd39f49e67 /shared_cpp/Renderer3d.cpp
parent4079e69fe4107d2a50b122dbd58710bbeb10ace2 (diff)
Rotating 3d square
Diffstat (limited to 'shared_cpp/Renderer3d.cpp')
-rw-r--r--shared_cpp/Renderer3d.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/shared_cpp/Renderer3d.cpp b/shared_cpp/Renderer3d.cpp
index 7afaea0..4ec5504 100644
--- a/shared_cpp/Renderer3d.cpp
+++ b/shared_cpp/Renderer3d.cpp
@@ -80,8 +80,9 @@ void Mesh3d::load(Vertex3d* inVertices, uint32 inNumVertices, uint32* inIndices,
glEnableVertexAttribArray(renderer->attributes.position);
glVertexAttribPointer(renderer->attributes.position, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex3d), (GLvoid *)0);
- glEnableVertexAttribArray(renderer->attributes.normal);
- glVertexAttribPointer(renderer->attributes.normal, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex3d), (GLvoid *)offsetof(Vertex3d, normal));
+ // @TODO: Show normal once it's actually implemented
+ //glEnableVertexAttribArray(renderer->attributes.normal);
+ //glVertexAttribPointer(renderer->attributes.normal, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex3d), (GLvoid *)offsetof(Vertex3d, normal));
glEnableVertexAttribArray(renderer->attributes.color);
glVertexAttribPointer(renderer->attributes.color, 4, GL_FLOAT, GL_FALSE, sizeof(Vertex3d), (GLvoid *)offsetof(Vertex3d, color));