Commit Graph
4 Commits
Author SHA1 Message Date
西风逍遥游andCursor Agent 544779079f Add Material, RenderControl, and sampleable G-buffer for post effects (#43)
Introduce a compilable render feature control (shadow/gbuffer/forward/hair),
package shading into Material+ModelPart attachable to Renderable3D, and fill
sampleable linear-depth/normal (optional albedo) G-buffer targets while
keeping forward HW z-testing and CSM shadows.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-12 20:25:41 +08: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
西风逍遥游 324f0422b9 docs: enhance cylinder style gallery documentation and clarify output paths
Updated the documentation for the cylinder style gallery to specify that outputs are written to `build/.../test/out/` and provided clearer instructions regarding the image paths. Additionally, refined the description of the rendering process for better understanding.
2026-08-10 23:45:43 +08:00
西风逍遥游andCursor Agent 709fbd7686 feat(stylize): 风格化渲染模组(卡通 / 水彩 / 水墨 / 像素) (#8)
* feat(stylize): add NPR stylized rendering module

Add eve.Stylize with cartoon, watercolor, ink, and pixel post-process
shaders, mesh variants for cartoon/ink, CPU processImage helpers, and
StylePass integration over graphics Shader/Canvas.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

* fix(stylize): fix unit test Color/unique_ptr assertions

Use global Color typedef and compare unique_ptr via get() so zeroerr
decomposition does not try to copy unique_ptr.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

* feat(stylize): cylinder style gallery PNGs for docs

Add Graphics::newMeshCylinder and a gallery test that renders a lit
cylinder in cartoon/ink/watercolor/pixel styles, writing PNGs into
docs/images/stylize for the design doc. Fix pixel toon banding so dark
bands are not crushed to black.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

* fix(stylize): close gap vs research NPR looks in gallery

Stabilize lighting (no blown whites), use silhouette-only outlines so
stripe albedo no longer blacks out the form, composite watercolor/ink
onto paper, and retune cel/wash/pixel passes toward UTS / Bousseau /
Sumi-e / pixel-pipeline cues. Refresh cylinder gallery PNGs.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

* feat(stylize): stabilize extension APIs for future NPR work

Add StyleChain, newPassFromShader, applyTo, supports()/param
introspection, and document reserved gbuffer/multi-pass hooks.
Effects stay as first-pass approximations; the public surface is
what subsequent depth-outline and separable passes should plug into.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-09 23:09:10 +08:00