docs: settle the mirror ball rotation question with dumped data

Chased the lead that MirrorBallProjector's shader might cross-validate the ball's rotation
speed. It does — by showing there was never an unknown constant to recover.

  * All four MirrorBallProjector instances on live10149 carry MirrorBallIsLoopRotation = 0,
    MirrorBallLoopRotationSpeed = 0, MirrorBallLoopRotationValue = 0. The shader's own
    loop-rotation path is switched off on this stage, so it is not the rotation source.
  * The source is the clip StageAnimationPlayer already plays. Its six quaternion curves
    (mirrorball_a_000 and b_000..004) give a constant -179.50 deg/s about Y — the same figure
    at every one of the seven keys — 2.0 s per loop, last key -359 deg so the loop seam does
    not repeat a frame. The ball speed in our build is therefore already correct.

The general lesson is recorded too: "the value is 0" and "the value is unknown" are different
findings, and this one was filed as the latter for weeks. Check the enable flag before
declaring a constant unrecoverable.

What genuinely is blocked here is narrower than "the script's behaviour": the shader wants
_MirrorBallPosWS / _MirrorBallScale / _MirrorBallRotateValue, the component holds no reference
to any ball, all four projectors sit at the origin sharing one material, and the balls are at
six scattered positions. The object-to-object binding lives in the method body. The Blocked
section now says that instead of using this field as its example.

Two other things fell out of the same dump pass:

  * LensFlare is not a "build a system from scratch" item at all. CustomLensFlare's Flare
    points at Gallop.RenderPipeline.LensFlareData — a ScriptableObject in the same assembly,
    so rebuildable by signature — whose fields are a verbatim copy of Unity's legacy Flare
    (TextureLayout, Texture, ElementArray[ImageIndex/Position/Size/Color/UseLightColor/
    Rotate/Zoom/Fade], UseFog). That means the semantics are Unity's own and not blocked by
    IL2CPP, and URP ships LensFlareComponentSRP as the target. 199+5 objects carry it, and
    the stage has no legacy LensFlare component anywhere. Promoted to the next thing to do.
  * ShaderParamController, previously ranked "cheapest", is a no-op: its only two entries are
    _AmbientColor and _CharaColor, both (1,1,1,1). Struck from the list rather than left as
    bait.

The stale-saved-properties warning gains a worked example, because mtl_env_live10149_
projector001 is a good one: 40+ saved entries against 22 real ones, including _IsLoopYRotation
and _LoopYRotationSpeed, which are older spellings of properties that do exist — a near-miss
that reads as a discovery.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzXXkLzVC8pNA3JjyUGMbq
This commit is contained in:
ritenseki
2026-08-07 13:29:20 +08:00
parent 050a2c9a2f
commit f5368031af
3 changed files with 66 additions and 14 deletions
+8 -1
View File
@@ -251,7 +251,14 @@ FacialToon(47, **6341 keys/59首**) > MonitorControl(10, 3911/55首,dispID 语
### 第四优先:要从零搭渲染系统 ★★★
LightProjection(74, 3793/37首,URP 下 Projector 不工作) > Environment(58, 1375/49首,注意还有独立的 `MirrorReflectionDataList`;**Planar Reflection 本身已不用从零搭** —— `Gallop.MirrorReflection` 已实现,缺的是把轨道关键帧接上去) > LensFlare(57, 993/45首,可先做 SetActive 层;`CustomLensFlare` 的字段可按签名重建拿到)
**LensFlare(57, 993/45首) 应当从这一档移到第一档** —— 2026-08-07 dump 确认它不需要「从零搭」:`CustomLensFlare` 的 `Flare` 指向 `Gallop.RenderPipeline.LensFlareData`(可按签名重建的 ScriptableObject),字段是 Unity legacy Flare 的逐字翻版,URP 侧有 `LensFlareComponentSRP` 现成对应。
LightProjection(74, 3793/37首,URP 下 Projector 不工作) > Environment(58, 1375/49首,注意还有独立的 `MirrorReflectionDataList`;**Planar Reflection 本身已不用从零搭** —— `Gallop.MirrorReflection` 已实现,缺的是把轨道关键帧接上去)
> `MirrorBallProjector` 不在此列但值得记一笔:它是**卡住**而不是没做。shader 需要
> `_MirrorBallPosWS`/`_MirrorBallScale`/`_MirrorBallRotateValue`,而组件里没有任何指向灯球的
> 引用字段,4 个 projector 全在原点且共用一个材质 —— 绑定关系只存在于拿不到的方法体里。
> 顺带:灯球转速已不是未知(clip 恒定 −179.50°/s,见 `LIVE_DEV_MAP.md`)。
### 不该做