@@ -56,6 +56,7 @@ Rendering::Rendering() {
5656 bloom_filter_radius = 0 .005f ;
5757 bloom_strength = 0 .04f ;
5858 bloom_activated = true ;
59+ emission_strength = 8 .0f ;
5960
6061 // PBR parameters
6162 ENVIRONMENT_MAP_WIDTH = 2048 ;
@@ -676,7 +677,7 @@ void Rendering::initialize_game_objects() {
676677 PointLight* point_light1 = new PointLight (" point_light1" , " sphere" );
677678 point_light1->type = TypePointLight;
678679 point_light1->position = glm::vec3 (-10 .0f , 10 .0f , 10 .0f );
679- point_light1->albedo = glm::vec3 (1 .0f , 0 .0f , 0 .0f );
680+ point_light1->albedo = glm::vec3 (170 .0f / 255 . 0f , 0 .0f / 255 . 0f , 255 . 0f / 255 .0f );
680681 point_light1->intensity = 5 .0f ;
681682 point_light1->render_only_ambient = true ;
682683 point_light1->render_one_color = true ;
@@ -688,7 +689,7 @@ void Rendering::initialize_game_objects() {
688689 PointLight* point_light2 = new PointLight (" point_light2" , " sphere" );
689690 point_light2->type = TypePointLight;
690691 point_light2->position = glm::vec3 (10 .0f , 10 .0f , 10 .0f );
691- point_light2->albedo = glm::vec3 (0 .0f , 1 .0f , 0 .0f );
692+ point_light2->albedo = glm::vec3 (76 .0f / 255 . 0f , 255 .0f / 255 . 0f , 0 . 0f / 255 .0f );
692693 point_light2->intensity = 5 .0f ;
693694 point_light2->render_only_ambient = true ;
694695 point_light2->render_one_color = true ;
@@ -700,7 +701,7 @@ void Rendering::initialize_game_objects() {
700701 PointLight* point_light3 = new PointLight (" point_light3" , " sphere" );
701702 point_light3->type = TypePointLight;
702703 point_light3->position = glm::vec3 (-10 .0f , -10 .0f , 10 .0f );
703- point_light3->albedo = glm::vec3 (0 .0f , 0 .0f , 1 .0f );
704+ point_light3->albedo = glm::vec3 (255 .0f / 255 . 0f , 98 .0f / 255 . 0f , 0 . 0f / 255 .0f );
704705 point_light3->intensity = 25 .0f ;
705706 point_light3->render_only_ambient = true ;
706707 point_light3->render_one_color = true ;
@@ -712,7 +713,7 @@ void Rendering::initialize_game_objects() {
712713 PointLight* point_light4 = new PointLight (" point_light4" , " sphere" );
713714 point_light4->type = TypePointLight;
714715 point_light4->position = glm::vec3 (10 .0f , -10 .0f , 10 .0f );
715- point_light4->albedo = glm::vec3 (1 .0f , 1 .0f , 1 .0f );
716+ point_light4->albedo = glm::vec3 (255 .0f / 255 . 0f , 255 .0f / 255 . 0f , 255 . 0f / 255 .0f );
716717 point_light4->intensity = 5 .0f ;
717718 point_light4->render_only_ambient = true ;
718719 point_light4->render_one_color = true ;
@@ -822,6 +823,8 @@ void Rendering::render_viewport() {
822823 lighting_shader->setInt (" num_directional_lights" , directional_lights.size ());
823824 lighting_shader->setInt (" num_spot_lights" , spot_lights.size ());
824825
826+ lighting_shader->setFloat (" emission_strength" , emission_strength);
827+
825828 int idx_point_light = 0 ;
826829 for (auto it = point_lights.begin (); it != point_lights.end (); it++, idx_point_light++) {
827830 lighting_shader->setVec3 (" pointLights[" + std::to_string (idx_point_light) + " ].position" , it->second ->position );
0 commit comments