This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <spdlog/spdlog.h> | |
#include <glad/glad.h> | |
#include <GLFW/glfw3.h> | |
const char* vertShaderSource = "#version 330 core\n" | |
"layout(location = 0) in vec3 aPos;\n" | |
"void main() {\n" | |
" gl_Position = vec4(aPos, 1.0);\n" | |
"}\0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <spdlog/spdlog.h> | |
#include <glad/glad.h> | |
#include <GLFW/glfw3.h> | |
const char* vertShaderSource = R"( | |
#version 330 core | |
layout(location = 0) in vec3 aPos; | |
layout(location = 1) in vec3 aColor; | |
out vec3 vertexColor; | |
void main() { |