mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Light array sent to gpu
This commit is contained in:
@ -67,6 +67,9 @@ class Scene
|
||||
|
||||
void addObject(Object *object);
|
||||
void addMaterial(Material *material);
|
||||
|
||||
void updateLightAndObjects(int mat_id);
|
||||
std::set<int> getGPULights();
|
||||
|
||||
const std::vector<GPUObject> &getObjectData() const;
|
||||
std::vector<GPUMaterial> &getMaterialData();
|
||||
@ -79,6 +82,8 @@ class Scene
|
||||
std::vector<GPUObject> _gpu_objects;
|
||||
std::vector<GPUMaterial> _gpu_materials;
|
||||
|
||||
std::set<int> _gpu_lights;
|
||||
|
||||
GPUVolume _gpu_volume;
|
||||
|
||||
Camera *_camera;
|
||||
|
Reference in New Issue
Block a user