Camera distance Molang queries work incorrectly in splitscreen play
Partner Rank: 2 (Important)
Verification Builds: 1.21.50, 1.21.40
Regression Builds: -
Summary: Camera distance related Molang queries (camera_distance_range_lerp, distance_from_camera, lod_index) during splitscreen play always use distance to the 2nd player's camera for both screens, when the same entity is rendered for both players.
Affects currently Live Content: Yes
Impact: This issue affects splitscreen play on live content, there is no adequate workaround for it. It is particularly damaging for our Realistic Biomes add-on, as a lot of its functionality depends on per-player rendering and camera related queries.
Repro Steps:
- Create a world with attached add-on applied and enabled cheats
- Run /summon example:bug command in chat
- Activate splitscreen play and observe color of the entity, as each player is moving around
Observed Results: Entity changes color on both screens only when the 2nd player moves (see attached video)
Expected Results: Entity would change color only on the screen of the player that was moving
Screenshots/Videos attached: Yes, video is attached
Notes: -