fix: all lights default to intensity=8 range=15.5 + clipboard logging

- All 3 lights: intensity 8.0, range 15.5 (was 12/8/8, 60/40/40)
- Copy Parameters: also logs to console for debugging
- Clipboard text via ImGui.SetClipboardText (standard API)
This commit is contained in:
emil28092005
2026-06-19 08:44:07 +03:00
parent ace815c77d
commit 346b422cb0
3 changed files with 13 additions and 8 deletions
+6 -6
View File
@@ -309,7 +309,8 @@ class Program
var paramsText = sb.ToString();
ImGui.SetClipboardText(paramsText);
Console.WriteLine("[App] Parameters copied to clipboard:\n" + paramsText);
Console.WriteLine("[App] Parameters copied to clipboard:");
Console.WriteLine(paramsText);
}
ImGui.End();
@@ -410,8 +411,7 @@ class Program
isRecording = false;
}
}
}
}
} }
frames++;
if (timing.TotalTime - lastFpsTime >= 1.0)
@@ -531,15 +531,15 @@ class Program
// Lights (3 dynamic point lights, all cast shadows)
world.Entity("MainLight")
.Set(new Transform(new Vector3(0, 20, 0), Quaternion.Identity, Vector3.One))
.Set(Light.Point(new Vector3(0, 20, 0), new Vector3(1.0f, 0.95f, 0.85f), intensity: 12.0f, range: 60.0f));
.Set(Light.Point(new Vector3(0, 20, 0), new Vector3(1.0f, 0.95f, 0.85f), intensity: 8.0f, range: 15.5f));
world.Entity("SecondLight")
.Set(new Transform(new Vector3(-12, 10, 8), Quaternion.Identity, Vector3.One))
.Set(Light.Point(new Vector3(-12, 10, 8), new Vector3(0.3f, 0.6f, 1.0f), intensity: 8.0f, range: 40.0f));
.Set(Light.Point(new Vector3(-12, 10, 8), new Vector3(0.3f, 0.6f, 1.0f), intensity: 8.0f, range: 15.5f));
world.Entity("ThirdLight")
.Set(new Transform(new Vector3(10, 8, -10), Quaternion.Identity, Vector3.One))
.Set(Light.Point(new Vector3(10, 8, -10), new Vector3(0.9f, 0.2f, 0.3f), intensity: 8.0f, range: 40.0f));
.Set(Light.Point(new Vector3(10, 8, -10), new Vector3(0.9f, 0.2f, 0.3f), intensity: 8.0f, range: 15.5f));
var entityCount = 0;
world.Each((Entity e, ref Transform _) => entityCount++);