Skip to content

Fix software rasterizer#415

Open
shidemuri wants to merge 3 commits into
GensokyoClub:portablefrom
shidemuri:fix-stage-2
Open

Fix software rasterizer#415
shidemuri wants to merge 3 commits into
GensokyoClub:portablefrom
shidemuri:fix-stage-2

Conversation

@shidemuri

Copy link
Copy Markdown

This fixes two problems the software rasterizer had on stage 2:

  • because depth was not properly capped, some enemies/background tiles would write values past the depth near / far bounds preventing other objects that would be on top from appearing
  • The projection calculation would break once the front quads from the background got too far behind the camera (the two quads close to the camera would simply disappear). The calculation is probably still incorrect but at least this doesnt break anything else and i dont want to bother to add near plane clipping or anything like that because i stared at the code for about two weeks by this point

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