mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Real material shared system + parsing
This commit is contained in:
@ -22,8 +22,8 @@ int main(int argc, char **argv)
|
||||
Window window(&scene, WIDTH, HEIGHT, "RT_GPU", 1);
|
||||
Shader shader("shaders/vertex.vert", "shaders/frag.frag", "shaders/compute.glsl");
|
||||
|
||||
|
||||
// Material redMaterial = {glm::vec3(1.0f, 0.2f, 0.2f), 1.0, 1.0};
|
||||
// Material redMaterial = {glm::vec3(1.0f, 0.2f, 0.2f), 1.0, 1.0, 0.0};
|
||||
// scene.addMaterial(&redMaterial);
|
||||
|
||||
// for (int i = 0; i < 150; i++)
|
||||
// {
|
||||
@ -33,7 +33,7 @@ int main(int argc, char **argv)
|
||||
// float y = 2.0f * sin(angle * 3.0f);
|
||||
// glm::vec3 position(x, y, z);
|
||||
// float sphereSize = 0.8f + 0.4f * sin(angle * 2.0f);
|
||||
// scene.addObject(new Sphere(position, sphereSize, &redMaterial));
|
||||
// scene.addObject(new Sphere(position, sphereSize, 0));
|
||||
// }
|
||||
|
||||
GLuint objectSSBO;
|
||||
|
Reference in New Issue
Block a user