From 7c33a52ff73317d2a81d915a1ef0b87ac9ef6e09 Mon Sep 17 00:00:00 2001 From: emil28092005 Date: Thu, 18 Jun 2026 20:12:59 +0300 Subject: [PATCH] feat: static light at top (y=20) instead of physics ball MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Light moved to (0, 20, 0) — static, no physics body - Intensity 50, range 60, warm white color - Shadow map renders from this fixed position - LightBall removed, replaced with MainLight entity --- src/CortexEngine.App/Program.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/CortexEngine.App/Program.cs b/src/CortexEngine.App/Program.cs index ac8fc2c..2e8aa87 100644 --- a/src/CortexEngine.App/Program.cs +++ b/src/CortexEngine.App/Program.cs @@ -264,12 +264,9 @@ class Program .Set(new Transform(Vector3.Zero, Quaternion.Identity, Vector3.One)) .Set(grid); - var lightSphere = ProceduralMesh.CreateSphere(0.5f, 24, 12, new Vector3(1.0f, 0.9f, 0.7f)); - world.Entity("LightBall") - .Set(new Transform(new Vector3(0, 15, 0), Quaternion.Identity, Vector3.One)) - .Set(lightSphere) - .Set(RigidBody.DynamicSphere(0.5f, mass: 0.5f)) - .Set(Light.Point(new Vector3(0, 15, 0), new Vector3(1.0f, 0.9f, 0.7f), intensity: 30.0f, range: 40.0f)); + 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: 50.0f, range: 60.0f)); var entityCount = 0; world.Each((Entity e, ref Transform _) => entityCount++);