StageBlend: report renderers, not just materials — one material covers the whole stage
The log said "1 of 31 materials corrected" and that read like a one-off fix for one lamp, which prompted the reasonable question of why far more than one lamp got better. The count was right and the unit was wrong. Materials are heavily shared here: roughly 1500 renderers across live10149 draw from 31 unique materials. The single corrected one, mtl_env_live10149_blinklight000 on LightBlinkBlend, is the blink-light material for the entire stage — it appears in all 27 BlinkLight groups, about 1450 renderers: audience_light 95, mob000 570, glow_object 67, glow_ramp 58, the mirror ball flare quads 83, every wash group, and the LED panels. So the same fix that cleared the ground wash wedges is also why the small bulbs stopped rendering as black blocks, which had been sitting in LIVE_TRACKS.md as an unexplained symptom. The log now counts affected renderers alongside materials and prints the per-material tally, so the blast radius is legible without cross-referencing the BlinkLight lines by hand. Both docs are corrected in the same pass. The earlier note narrowed the claim correctly — only materials whose current shader declares the property are touched — but by leading with "only 1" it understated the result in the other direction. That is three scope misstatements about this one fix in a day, so the rule now sits next to it: report the unit that matches the question being asked. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UzXXkLzVC8pNA3JjyUGMbq
This commit is contained in:
@@ -127,8 +127,14 @@ pf = obj.read_typetree()["m_ParsedForm"] # m_Name, m_PropInfo.m_Props
|
||||
⚠️ **实际受害面比存档表窄得多,别照着 26 这个数推。** 只有**当前 shader 真的声明了**这两个
|
||||
属性的材质才会被读到;其余材质虽然也存着 `One/Zero`,但那只是过期条目,无人问津。
|
||||
live10149 实测(`[StageBlend]` 日志):31 个材质里**只有 1 个**被修正 ——
|
||||
`mtl_env_live10149_blinklight000` / `LightBlinkBlend`,`_DstBlend` 0 → 1,
|
||||
正是地面 wash 灯那批黑楔子。修完实机确认恢复正常。
|
||||
`mtl_env_live10149_blinklight000` / `LightBlinkBlend`,`_DstBlend` 0 → 1。
|
||||
|
||||
**但「1 个材质」严重低估了影响面 —— 材质在舞台上是高度共享的。** 那一个材质铺满
|
||||
27 个 BlinkLight 组、约 **1450 个渲染器**(观众席 95、mob000 570、glow_object 67、
|
||||
glow_ramp 58、镜面球闪片 83、全部 wash 组、各种 LED 板),实机确认修好的不只是地面 wash 灯的
|
||||
黑楔子,长期挂着的「小灯泡渲染成黑块」也一并正常了。
|
||||
**教训(第三次同一天):报数要报对单位。** 舞台上约 1500 个渲染器只有 31 个材质,
|
||||
按材质计数会把影响面说小两个数量级 —— `[StageBlend]` 日志现在同时报渲染器数。
|
||||
`StageController.RestoreAuthoredBlendState()` 在舞台初始化时把这两个属性写回 **shader 声明的
|
||||
默认值**(`Shader.GetPropertyDefaultFloatValue`),对本来就该不透明的 shader 是空操作,自限。
|
||||
改了哪些材质会逐条打进 `[StageBlend]` 日志。
|
||||
|
||||
Reference in New Issue
Block a user