Fixed the way lights were linked to opencl, did some tweaking of the phong lighting.
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
||||
// Both will create the view matrix, view res buffer
|
||||
void create_viewport(int width, int height, float v_fov, float h_fov) override;
|
||||
|
||||
void assign_lights(std::vector<Light> lights) override;
|
||||
void assign_lights(std::vector<Light> *lights) override;
|
||||
void assign_map(Old_Map *map) override;
|
||||
void assign_camera(Camera *camera) override;
|
||||
void validate() override;
|
||||
@@ -60,6 +60,8 @@ public:
|
||||
void compute() override;
|
||||
void draw(sf::RenderWindow* window) override;
|
||||
|
||||
|
||||
void test_edit_viewport(int width, int height, float v_fov, float h_fov);
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user