Commit Graph

7 Commits

Author SHA1 Message Date
DeMuenu 1a30f72010 optimisations skipping empty for loops 2026-03-28 17:15:19 +01:00
DeMuenu 79ad33c5f3 Fix Gemini stuff 2026-03-26 23:01:38 +01:00
DeMuenu a1e808ad92 optimisations from gemini (not tested) 2026-03-24 15:45:31 +01:00
DeMuenu 9d7a24113e Fixed default Shader Variable 2025-10-05 14:38:21 +02:00
DeMuenu 65c34d2ddf Refactor light range and angle calculations
Updated how light range and spot angle are calculated and packed for both editor and runtime scripts, distinguishing between sphere and non-sphere lights. Adjusted shader logic to use new packing for spot light contribution, improving consistency between CPU and GPU representations.
2025-10-04 04:10:43 +02:00
DeMuenu bb31145e4d smooth falloff, but not correct angles
Replaced usage of GetCosHalfAngle() with spotAngleDeg for spot light calculations in both editor and runtime scripts. Updated shader logic to use smoothstep for light contribution falloff, improving spot light edge smoothness.
2025-10-03 23:27:27 +02:00
DeMuenu b26c189b89 Rename PlayerPositionsToShader to LightUpdater
Renamed all references, scripts, and editor helpers from PlayerPositionsToShader to LightUpdater for improved clarity and consistency. Updated README and editor preview documentation to reflect the new naming. Added new shader Standard_Lightmap_2SP for enhanced lighting and shadow support.
2025-10-02 20:25:59 +02:00