Skip to content

Fix projection transform that was leading to ~100 max draws.#92

Open
tychedelia wants to merge 1 commit intoprocessing:mainfrom
tychedelia:2d-projection-fix
Open

Fix projection transform that was leading to ~100 max draws.#92
tychedelia wants to merge 1 commit intoprocessing:mainfrom
tychedelia:2d-projection-fix

Conversation

@tychedelia
Copy link
Member

I can't remember what I was thinking here with transform Z = 999.9 for the default 2d camera. With the far plane at 1000.0 this only leaves 100 draws. Instead, we set Z to BATCH_INDEX_STEP to place it right inside the near plane. Also cleanup with a const + new constructor for the projection.

@tychedelia tychedelia requested a review from catilac March 23, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant