No description
  • Odin 98.2%
  • Just 1.1%
  • Slang 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
crowmaki 8e5e703fa9 The sample's cube and plane are wound counter-clockwise from outside (#107)
The cube indices were deliberately clockwise, on the reasoning that the projection's Y negation reverses a triangle's orientation, so a counter-clockwise face in the world would arrive clockwise on screen and be culled. That misses the second flip: Vulkan maps NDC onto a framebuffer whose Y runs down, and `frontFace` is judged in framebuffer space. The two flips cancel, so counter-clockwise world winding was already the front face and only the inner faces of every cube and the plane were drawn.

The plane shares the cube mesh through `attach_cube_renderer`, so the same change fixes it.

`cube_mesh` now emits 0,1,2 and 0,2,3, the misleading winding comment is gone, and the `perspective` comment states why Y is negated. The winding test is renamed `the_cube_winds_counter_clockwise_seen_from_outside` and asserts outward-facing triangles.

`just test` passes all 63 tests.

Co-authored-by: Alic Szecsei <aszecsei@gmail.com>
Reviewed-on: #107
2026-09-07 01:28:35 +00:00
.claude/skills/fj docs: agent skill config and an fj CLI skill 2026-09-02 11:46:05 -07:00
core The falling-cubes sample: a Scene of GameObjects dropping cubes onto a plane (#74) (#106) 2026-09-07 01:10:42 +00:00
docs Kinematic bodies, inactive GameObjects, and a disabled body is not written back (#72) (#104) 2026-09-07 00:39:36 +00:00
plugins The sample's cube and plane are wound counter-clockwise from outside (#107) 2026-09-07 01:28:35 +00:00
samples The falling-cubes sample: a Scene of GameObjects dropping cubes onto a plane (#74) (#106) 2026-09-07 01:10:42 +00:00
shaders Mesh_Renderer carries a colour and the mesh pipeline draws with depth (#70) (#102) 2026-09-07 00:05:01 +00:00
tests The sample's cube and plane are wound counter-clockwise from outside (#107) 2026-09-07 01:28:35 +00:00
tools/shaderc Mesh_Renderer carries a colour and the mesh pipeline draws with depth (#70) (#102) 2026-09-07 00:05:01 +00:00
.gitattributes The falling-cubes sample: a Scene of GameObjects dropping cubes onto a plane (#74) (#106) 2026-09-07 01:10:42 +00:00
.gitignore feat: the Shader Build Step, and generated Pass Interfaces 2026-09-01 17:09:58 -07:00
AGENTS.md Vendor Box3D and build it into .tools/ (#68) (#100) 2026-09-06 23:24:56 +00:00
CLAUDE.md docs: minimal AGENTS.md 2026-09-02 11:04:18 -07:00
CONTEXT.md A cube falls onto a plane: the box3d Plugin, Rigidbody and Box_Collider lifecycle, and the fixed step (#71) (#103) 2026-09-07 00:28:22 +00:00
justfile A cube falls onto a plane: the box3d Plugin, Rigidbody and Box_Collider lifecycle, and the fixed step (#71) (#103) 2026-09-07 00:28:22 +00:00