fixed unselecting entity when cursor goes from ImGui to viewport while click is held
This commit is contained in:
@@ -227,15 +227,10 @@ namespace OpenEngine {
|
||||
auto& ambient = material.ambient_strength;
|
||||
auto& specular = material.specular_strength;
|
||||
|
||||
if (ImGui::SliderFloat4("Albedo", glm::value_ptr(albedo), 0, 1))
|
||||
material.albedo = albedo;
|
||||
if (ImGui::SliderFloat("Roughness", &roughness, 0, 1))
|
||||
material.roughness = roughness;
|
||||
if (ImGui::SliderFloat("Metallic", &metallic, 0, 1))
|
||||
material.metallic = metallic;
|
||||
if (ImGui::SliderFloat("Ambient strength", &ambient, 0, 1))
|
||||
material.ambient_strength = ambient;
|
||||
if (ImGui::SliderFloat("Specular strength", &specular, 0, 10))
|
||||
material.specular_strength = specular;
|
||||
ImGui::SliderFloat4("Albedo", glm::value_ptr(albedo), 0, 1);
|
||||
ImGui::SliderFloat("Roughness", &roughness, 0, 1);
|
||||
ImGui::SliderFloat("Metallic", &metallic, 0, 1);
|
||||
ImGui::SliderFloat("Ambient strength", &ambient, 0, 1);
|
||||
ImGui::SliderFloat("Specular strength", &specular, 0, 10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user