Commit Graph
4 Commits
Author SHA1 Message Date
Cursor Agentand西风逍遥游 a2c1f0d9b2 fix(graphics): large-scene lighting and CSM for Sponza
Cascade selection used euclidean eye distance while splits are view-space
+Z, so a wide atrium sampled the wrong shadow map (half-frame black cut).
Fit CSM to a 64m shadow far, snap ortho bounds to texels, and scale depth
bias with world texel size.

Forward packing sorted point lights first and always shaded lights[0] as
a directional, so MultiPoint/IBL treated a world position as L and blew
out. Promote a real directional to the primary slot and zero that term
when only points exist.

Also: view-space position in mesh3d, two-sided mesh pipeline, mirrored
Assimp winding, alpha cutout, stable TBN, hemispheric ambient, and SDR
highlight compression. Sponza camera far/point intensities are last-mile
only after the engine fixes.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-08-12 17:19:10 +00:00
西风逍遥游 b9e3730072 feat(tests): enhance graphics tests with new rendering previews
- Added new test cases for various graphics functionalities, including animation previews, particle effects, and inventory UI.
- Implemented rendering previews for Mixamo animations, Box2D physics, and procedural generation, allowing for real-time visualization during tests.
- Introduced helper functions for drawing graphics elements, improving the clarity and maintainability of test code.
- Enhanced existing tests to utilize the new graphics capabilities, ensuring comprehensive coverage of rendering features.
2026-08-11 02:57:47 +08:00
西风逍遥游 f0b0527f9f feat: enhance map module with multi-layer support and object management
- Implemented multi-layer tilemap functionality, allowing for the reading and saving of Tiled JSON formats.
- Added support for various tile projections (orthogonal, isometric, staggered, hexagonal) and depth calculations.
- Introduced object layer parsing and caching for improved map object management.
- Updated the rendering system to unify 2D depth queues and enhance sprite handling.
- Added new methods for accessing object properties, including position and dimensions.

This update significantly improves the map module's capabilities and integration with the rendering system.
2026-08-08 00:26:58 +08:00
sunxfancyandCursor d1034c4c2b feat: enhance math and tensor modules with new functionalities and documentation updates
- Updated the math module to include vector and matrix operations, noise generation, Bezier curves, and random number utilities.
- Introduced the tensor module, providing TensorFlow 2-style eager execution and graph building capabilities.
- Enhanced documentation to reflect the new features in the math and tensor modules, including usage examples and API references.
- Modified CMakeLists.txt to include the new math and tensor modules, ensuring proper build configurations.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 15:50:02 +08:00