diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-29 01:51:21 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-29 01:51:21 +0100 |
| commit | dc9ddd618b12e7cadcfaf87bfb42af86f6a00386 (patch) | |
| tree | 29f78e4e80032bb9419bb18e1f582730f69e0d7e /doc | |
| parent | a178de4e8680051925af9454b140343bf7eae214 (diff) | |
docs(3d): document set_direct_render() in Y-flip rule section
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/3D.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -41,6 +41,13 @@ chain, so they must **pre-flip** their geometry to compensate: **Do not** set `m[5] = +t` or use `frontFace = WGPUFrontFace_CCW` (default) in rasterized 3D pipelines — the result will be upside-down with back-faces culled. +**Exception — direct-to-surface rendering** (no post-process chain): call +`renderer.set_direct_render(true)` **before** `renderer.init()`. This selects standard +`WGPUFrontFace_CCW` winding and un-negates Y in the projection matrix, producing a +correct upright image when the output goes straight to the swap-chain surface +(e.g. `test_3d_render`). Effects that feed into the post-process chain must **not** +set this flag. + ## Core Concept Hybrid SDF/rasterization pipeline with physics and collision detection. |
