Fixed Issue with normals not loading
Forgot to add attribute 2 (which stores the normal) as enabled for vaos with normalsmain
parent
3ede43d3e0
commit
b486bd375f
Binary file not shown.
|
@ -24,3 +24,13 @@
|
|||
3 2080 1668323537012791771 CMakeFiles/Step_3.dir/src/graphics/gl/shader.cpp.o 2553d57dba16057b
|
||||
2 3101 1668323538032821145 CMakeFiles/Step_3.dir/src/engine/main.cpp.o 641dce3f86933e2e
|
||||
2 1369 1668323498931695025 CMakeFiles/Step_3.dir/src/engine/util/parser.cpp.o 1007c86c207ac940
|
||||
1 1102 1668324071584170088 CMakeFiles/Step_3.dir/src/graphics/gl/gl.cpp.o 330ad35a6abf06c3
|
||||
1 1373 1668324071856177907 CMakeFiles/Step_3.dir/src/graphics/graphics.cpp.o ce988de97a5cb51d
|
||||
1374 1444 1668324071924179862 Step_3 f055ce2b85635598
|
||||
1 1083 1668324105033131597 CMakeFiles/Step_3.dir/src/graphics/gl/gl.cpp.o 330ad35a6abf06c3
|
||||
1083 1160 1668324105109133783 Step_3 f055ce2b85635598
|
||||
1 1080 1668324205980033050 CMakeFiles/Step_3.dir/src/graphics/gl/gl.cpp.o 330ad35a6abf06c3
|
||||
1 1310 1668324206208039601 CMakeFiles/Step_3.dir/src/graphics/graphics.cpp.o ce988de97a5cb51d
|
||||
1310 1378 1668324206276041556 Step_3 f055ce2b85635598
|
||||
1 1298 1668324222400504969 CMakeFiles/Step_3.dir/src/graphics/graphics.cpp.o ce988de97a5cb51d
|
||||
1298 1369 1668324222472507037 Step_3 f055ce2b85635598
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
Binary file not shown.
|
@ -1,3 +1,3 @@
|
|||
Start testing: Nov 13 02:14 EST
|
||||
Start testing: Nov 13 02:23 EST
|
||||
----------------------------------------------------------
|
||||
End testing: Nov 13 02:14 EST
|
||||
End testing: Nov 13 02:23 EST
|
||||
|
|
|
@ -122,6 +122,7 @@ VAO::VAO(const std::vector<Raytracing::Triangle>& triangles): VaoID(createVAO())
|
|||
// enable the attributes, prevents us from having to do this later.
|
||||
glEnableVertexAttribArray(0);
|
||||
glEnableVertexAttribArray(1);
|
||||
glEnableVertexAttribArray(2);
|
||||
// convert vertex data
|
||||
std::vector<float> verts;
|
||||
std::vector<float> uvs;
|
||||
|
|
|
@ -529,7 +529,6 @@ namespace Raytracing {
|
|||
});
|
||||
|
||||
if (debug){
|
||||
// TODO: temp install GLM to test which function is broken.
|
||||
auto projection = m_camera.project();
|
||||
if (m_window.isMouseGrabbed()) {
|
||||
yaw += (float) Input::getMouseDelta().x * (1000.0f / ImGui::GetIO().Framerate / 1000.0f) * 3;
|
||||
|
|
Loading…
Reference in New Issue