generated from Persson-dev/OpenGLComputeShader
Compare commits
2 Commits
926bf694c0
...
2b045b060b
| Author | SHA1 | Date | |
|---|---|---|---|
|
2b045b060b
|
|||
|
c8d1701ad5
|
16
.vscode/compile_commands.json
vendored
16
.vscode/compile_commands.json
vendored
@@ -1,16 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"directory": "/home/simon/Programmation/GPUCompute",
|
|
||||||
"arguments": ["/usr/bin/g++", "-c", "-m64", "-isystem", "/usr/include/X11/dri", "-isystem", "/home/simon/.xmake/packages/g/glad/v0.1.36/9e3539cb78a3425b96246554411a0b79/include", "-isystem", "/home/simon/.xmake/packages/g/glm/1.0.2/f8fba32531124eb38c4833bdc558de88/include", "-isystem", "/home/simon/.xmake/packages/s/stb/2025.03.14/67005fc11486400896028eb775a57270/include", "-isystem", "/home/simon/.xmake/packages/s/stb/2025.03.14/67005fc11486400896028eb775a57270/include/stb", "-o", "build/.objs/App/linux/x86_64/release/src/Shader.cpp.o", "src/Shader.cpp"],
|
|
||||||
"file": "src/Shader.cpp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"directory": "/home/simon/Programmation/GPUCompute",
|
|
||||||
"arguments": ["/usr/bin/g++", "-c", "-m64", "-isystem", "/usr/include/X11/dri", "-isystem", "/home/simon/.xmake/packages/g/glad/v0.1.36/9e3539cb78a3425b96246554411a0b79/include", "-isystem", "/home/simon/.xmake/packages/g/glm/1.0.2/f8fba32531124eb38c4833bdc558de88/include", "-isystem", "/home/simon/.xmake/packages/s/stb/2025.03.14/67005fc11486400896028eb775a57270/include", "-isystem", "/home/simon/.xmake/packages/s/stb/2025.03.14/67005fc11486400896028eb775a57270/include/stb", "-o", "build/.objs/App/linux/x86_64/release/src/Renderer.cpp.o", "src/Renderer.cpp"],
|
|
||||||
"file": "src/Renderer.cpp"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"directory": "/home/simon/Programmation/GPUCompute",
|
|
||||||
"arguments": ["/usr/bin/g++", "-c", "-m64", "-isystem", "/usr/include/X11/dri", "-isystem", "/home/simon/.xmake/packages/g/glad/v0.1.36/9e3539cb78a3425b96246554411a0b79/include", "-isystem", "/home/simon/.xmake/packages/g/glm/1.0.2/f8fba32531124eb38c4833bdc558de88/include", "-isystem", "/home/simon/.xmake/packages/s/stb/2025.03.14/67005fc11486400896028eb775a57270/include", "-isystem", "/home/simon/.xmake/packages/s/stb/2025.03.14/67005fc11486400896028eb775a57270/include/stb", "-o", "build/.objs/App/linux/x86_64/release/src/Main.cpp.o", "src/Main.cpp"],
|
|
||||||
"file": "src/Main.cpp"
|
|
||||||
}]
|
|
||||||
@@ -17,7 +17,7 @@ constexpr int SWAP_INTERVAL = 1;
|
|||||||
constexpr int TRANSFORMATION_COUNT = 3;
|
constexpr int TRANSFORMATION_COUNT = 3;
|
||||||
|
|
||||||
constexpr float ANIMATION_TIME = 2;
|
constexpr float ANIMATION_TIME = 2;
|
||||||
constexpr float ANIMATION_STILL_TIME = 1;
|
constexpr float ANIMATION_STILL_TIME = .5f;
|
||||||
|
|
||||||
class Timer {
|
class Timer {
|
||||||
public:
|
public:
|
||||||
@@ -249,7 +249,7 @@ static GLFWwindow* InitWindow() {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto viewMatrix = glm::lookAt(glm::vec3{1, 2, 2}, {0, 0, 0}, {0, 1, 0});
|
auto viewMatrix = glm::lookAt(glm::vec3{1, 1.5, 1.5}, {0, 0, 0}, {0, 1, 0});
|
||||||
auto projectionMatrix = glm::perspective(70.0f, 2.0f, 0.01f, 10.0f);
|
auto projectionMatrix = glm::perspective(70.0f, 2.0f, 0.01f, 10.0f);
|
||||||
|
|
||||||
glUseProgram(s_GraphicsShader);
|
glUseProgram(s_GraphicsShader);
|
||||||
|
|||||||
Reference in New Issue
Block a user