Skip to content

Feature request: Post processing with x-offsets for each raster line #10

Description

@soegaard

Back in the day most scrollers on 8-bit machines used the x-offset register. In order to render a given scanline the x-offset register was consulted and the rasterline was shifted a little in the horizontal direction. Using raster interrupts it was possible to change the value of the x-offset register at multiple positions along the screen.

I propose to add a post processing phase to mode-lambda. Instead of a register I propose to introduce a vector whose i'th element determines the x-offset of rasterline i.
To "hide" whatever has been scrolled out of view, the resulting image must be cropped (hence the famous border on the c64).

One approach to implement this:
https://en.wikibooks.org/wiki/OpenGL_Programming/Post-Processing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions