Conversation
Owner
|
5 million files changed |
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.
Summary
render_pipelines.drawBillboards(ctx)stage inside built-in TILTThis is a presentation-only API. It does not change collision, movement, warps, scripts, saves, battles, or link behavior.
API
During built-in TILT, an enabled pipeline may implement
drawBillboards(ctx). The context provides:ctx.map: semantic map dimensions and collision-derivedcell(x, y)flagsctx.drawMapCutout(...): draw a cached alpha card for a seeded map componentctx.maskMapCutout(...): remove that same component from the active ground canvasctx.billboard(worldX, worldY, drawFn): merge the card into the normal upright-object Y-sortctx.mapScale: map-pixel to world-pixel scalemaskMapCutoutreturnsfalsewhen the region cannot be masked safely, allowing mods to skip the corresponding upright card and avoid partial rendering.Verification
luajit tests/mod_render_tests.lua— 62/62luajit -bluajit tests/run_engine.lua— 367/368 in the restricted workspace; the sole failure was temporary-fixture write permissionluajit tests/engine/required_import_streaming_test.lua— 11/11 when rerun with repository write accesspython3 tools/modkit.py docsgit diff --checkOpened as a draft for API and renderer review.