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:
Binary file not shown.
@@ -29,7 +29,12 @@ Size=507,263
|
|||||||
Collapsed=0
|
Collapsed=0
|
||||||
|
|
||||||
[Window][Shadow & Light Parameters]
|
[Window][Shadow & Light Parameters]
|
||||||
Pos=2,199
|
Pos=2,200
|
||||||
Size=220,372
|
Size=458,524
|
||||||
|
Collapsed=0
|
||||||
|
|
||||||
|
[Window][Video Recording]
|
||||||
|
Pos=986,3
|
||||||
|
Size=284,54
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
|
|
||||||
|
|||||||
@@ -309,7 +309,8 @@ class Program
|
|||||||
|
|
||||||
var paramsText = sb.ToString();
|
var paramsText = sb.ToString();
|
||||||
ImGui.SetClipboardText(paramsText);
|
ImGui.SetClipboardText(paramsText);
|
||||||
Console.WriteLine("[App] Parameters copied to clipboard:\n" + paramsText);
|
Console.WriteLine("[App] Parameters copied to clipboard:");
|
||||||
|
Console.WriteLine(paramsText);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.End();
|
ImGui.End();
|
||||||
@@ -410,8 +411,7 @@ class Program
|
|||||||
isRecording = false;
|
isRecording = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} }
|
||||||
}
|
|
||||||
|
|
||||||
frames++;
|
frames++;
|
||||||
if (timing.TotalTime - lastFpsTime >= 1.0)
|
if (timing.TotalTime - lastFpsTime >= 1.0)
|
||||||
@@ -531,15 +531,15 @@ class Program
|
|||||||
// Lights (3 dynamic point lights, all cast shadows)
|
// Lights (3 dynamic point lights, all cast shadows)
|
||||||
world.Entity("MainLight")
|
world.Entity("MainLight")
|
||||||
.Set(new Transform(new Vector3(0, 20, 0), Quaternion.Identity, Vector3.One))
|
.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")
|
world.Entity("SecondLight")
|
||||||
.Set(new Transform(new Vector3(-12, 10, 8), Quaternion.Identity, Vector3.One))
|
.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")
|
world.Entity("ThirdLight")
|
||||||
.Set(new Transform(new Vector3(10, 8, -10), Quaternion.Identity, Vector3.One))
|
.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;
|
var entityCount = 0;
|
||||||
world.Each((Entity e, ref Transform _) => entityCount++);
|
world.Each((Entity e, ref Transform _) => entityCount++);
|
||||||
|
|||||||
Reference in New Issue
Block a user