mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Poorly done emissive texture
This commit is contained in:
@ -76,12 +76,6 @@ 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);
|
||||
glBindBuffer(GL_UNIFORM_BUFFER, cameraUBO);
|
||||
@ -140,6 +134,7 @@ int main(int argc, char **argv)
|
||||
shader.set_vec2("u_resolution", glm::vec2(WIDTH, HEIGHT));
|
||||
|
||||
shader.set_textures(scene.getTextureIDs());
|
||||
shader.set_emission_textures(scene.getEmissionTextureIDs());
|
||||
|
||||
glDispatchCompute((WIDTH + 15) / 16, (HEIGHT + 15) / 16, 1);
|
||||
|
||||
|
Reference in New Issue
Block a user