some fixes, also changed from doubles to floats to save memory for sake of cache optimization

This commit is contained in:
yggdrasil75
2026-01-20 18:17:35 -05:00
parent c52c6b14b9
commit a4e378bbcd
2 changed files with 24 additions and 26 deletions

View File

@@ -730,7 +730,7 @@ int main() {
ImGui::Separator();
ImGui::Text("Sphere Color:");
float color[3] = {sphereConfig.r, sphereConfig.g, sphereConfig.b};
float color[3] = {sphereConfig.r / 255, sphereConfig.g / 255, sphereConfig.b / 255};
if (ImGui::ColorEdit3("Color", color)) {
sphereConfig.r = static_cast<uint8_t>(color[0] * 255);
sphereConfig.g = static_cast<uint8_t>(color[1] * 255);