Skip to content

Material textures, alpha cutouts and glass, skeleton and IK - #10

Merged
Baker-Harrison merged 13 commits into
mainfrom
claude/project-thread-10f5vi-look
Nov 1, 2026
Merged

Baker-Harrison merged 13 commits into
mainfrom
claude/project-thread-10f5vi-look

Conversation

@Baker-Harrison

Copy link
Copy Markdown
Owner

Look layer, part 1 of the quality plan. Includes the commits of #6 until that one merges.

What changes

  • Material textures. Scene::add_material(albedo, normal, packed) and add_mesh_textured give triangles a UV and a material. The CPU reference, Vulkan and Metal sample albedo, tangent-space normal and packed roughness/metal/AO maps with repeat wrap and mips; normal mapping uses a cotangent frame from screen derivatives, shading uses roughness and metallic for a GGX-style highlight and AO on ambient.
  • Alpha. AlphaMode::Cutout discards texels under 0.5 alpha (leaves); AlphaMode::Blend is drawn after opaque geometry, depth tested without depth write (glass).
  • Skeleton. engine::skeleton has quaternions, a joint hierarchy, forward kinematics, two-bone IK with a pole vector, keyframed clips with slerp and easing, and an AnimPlayer that blends between clips.
  • Vertex layout is now 64 bytes (uv and material per vertex).

Verified on Linux

  • New tests: mip filtering and detail, texture replaces vertex colour, cutout and blend on CPU, Vulkan matches CPU for textures and alpha (mean channel difference under 8), skeleton FK, IK reach and bone lengths, pole side, clip blending.
  • Workspace tests pass; cargo check passes for Windows and macOS targets. Metal shaders are compiled only by macOS CI here.

Generated by Claude Code

claude added 13 commits November 1, 2026 03:06
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PtKQ2WViU4Go8As9to1xh
…the CPU renderer

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PtKQ2WViU4Go8As9to1xh
…nd roughness shading

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PtKQ2WViU4Go8As9to1xh
…lkan and Metal

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PtKQ2WViU4Go8As9to1xh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PtKQ2WViU4Go8As9to1xh
… path

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PtKQ2WViU4Go8As9to1xh
…nd crates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PtKQ2WViU4Go8As9to1xh
@Baker-Harrison
Baker-Harrison merged commit 7299fea into main Nov 1, 2026
6 checks passed
@Baker-Harrison
Baker-Harrison deleted the claude/project-thread-10f5vi-look branch November 1, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants