+ | Texture parse

This commit is contained in:
TheRedShip
2025-01-27 16:59:06 +01:00
parent d93a7342a1
commit 1e0ff2d88d
9 changed files with 38 additions and 7 deletions

View File

@ -79,6 +79,11 @@ int main(int argc, char **argv)
glBufferData(GL_SHADER_STORAGE_BUFFER, scene.getGPULights().size() * sizeof(int), nullptr, GL_STATIC_DRAW);
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 6, lightSSBO);
GLuint textureSSBO;
glGenBuffers(1, &textureSSBO);
glBindBuffer(GL_SHADER_STORAGE_BUFFER, textureSSBO);
glBufferData(GL_SHADER_STORAGE_BUFFER, 1 * sizeof(int), nullptr, GL_STATIC_DRAW);
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 6, textureSSBO);
GLuint cameraUBO;
glGenBuffers(1, &cameraUBO);