Skip to content

Commit 09fd3b5

Browse files
committed
Fix #335 for UI double conversion in degree of the MatrixPerspectiveFovLH function
1 parent 16ebf22 commit 09fd3b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SHADERed/UI/Tools/VariableValueEdit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,10 @@ namespace ed {
415415
ImGui::NextColumn();
416416

417417
ImGui::PushItemWidth(-1);
418-
float fov = glm::degrees(*FunctionVariableManager::LoadFloat(m_var->Arguments, 0));
418+
float fov = *FunctionVariableManager::LoadFloat(m_var->Arguments, 0);
419419
if (ImGui::SliderAngle(("##fovAngle" + std::string(m_var->Name)).c_str(), &fov, 0, 180))
420420
ret = true;
421-
*FunctionVariableManager::LoadFloat(m_var->Arguments, 0) = glm::radians(fov);
421+
*FunctionVariableManager::LoadFloat(m_var->Arguments, 0) = fov;
422422
ImGui::NextColumn();
423423

424424
ImGui::Text("Aspect ratio:");

0 commit comments

Comments
 (0)