Browse Source
We notice that masks can be described by 2 parameters: 1. Whether they have 0 or 1 as their high bits. 2. Whether they shift to the left or to the right on the next line. Describing masks this way allows us to lift them to template variables and simplify the code. We also avoid handling the mask in the `RenderLine` loop entirely. Also fixes a foliage rendering bug: Transparent foliage pixels were previously blended but they should have been simply skipped.pull/5563/head
4 changed files with 696 additions and 597 deletions
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue