Repository navigation
Material textures, alpha cutouts and glass, skeleton and IK - #10
Merged
Merged
Conversation
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
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
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017PtKQ2WViU4Go8As9to1xh
…gate 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Look layer, part 1 of the quality plan. Includes the commits of #6 until that one merges.
What changes
Scene::add_material(albedo, normal, packed)andadd_mesh_texturedgive 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.AlphaMode::Cutoutdiscards texels under 0.5 alpha (leaves);AlphaMode::Blendis drawn after opaque geometry, depth tested without depth write (glass).engine::skeletonhas quaternions, a joint hierarchy, forward kinematics, two-bone IK with a pole vector, keyframed clips with slerp and easing, and anAnimPlayerthat blends between clips.Verified on Linux
cargo checkpasses for Windows and macOS targets. Metal shaders are compiled only by macOS CI here.Generated by Claude Code