diff --git a/crates/muninn-move-tracker/README.md b/crates/muninn-move-tracker/README.md index faf77fe..da8c4eb 100644 --- a/crates/muninn-move-tracker/README.md +++ b/crates/muninn-move-tracker/README.md @@ -3,6 +3,9 @@ Muninn owns PS Move sensor stream exposure. This crate is Muninn's first native optical marker candidate extractor: Rust owns orchestration, FFI, validation, and the CPU mirror; the compute shader owns the parallel image reduction stage. +The shader includes CultMath's canonical HLSL mirror, so shader compilation must +add `E:\Projects\CultMath\shaders` or the packaged CultMath shader content to +the include path. This crate deliberately stops at per-frame marker candidates. Final pose, stereo triangulation, controller association, IMU fusion, prediction, and diff --git a/crates/muninn-move-tracker/shaders/MoveSphereCandidate.comp.hlsl b/crates/muninn-move-tracker/shaders/MoveSphereCandidate.comp.hlsl index 9cda916..9900868 100644 --- a/crates/muninn-move-tracker/shaders/MoveSphereCandidate.comp.hlsl +++ b/crates/muninn-move-tracker/shaders/MoveSphereCandidate.comp.hlsl @@ -2,6 +2,8 @@ // One thread group owns one image tile. The shader emits at most one bright // marker candidate per 16px tile; Rust owns dispatch sizing and downstream ranking. +#include "CultMath.hlsl" + struct MoveSphereCandidate { uint2 sourceIdHash; @@ -83,7 +85,7 @@ void main(uint3 groupId : SV_GroupID, uint3 groupThreadId : SV_GroupThreadID) { float area = (float)gArea; float tilePixels = (float)(tileSize * tileSize); - float areaScore = min(1.0, area / tilePixels); + float areaScore = cultmath_saturate(area / tilePixels); float brightnessScore = (float)gPeak / 255.0; MoveSphereCandidate candidate;