Skip to content

A 3DS homebrew example program that implements a scanline offset / hblank effect with a geometry shader.

License

Notifications You must be signed in to change notification settings

TheGag96/3ds-scanline-offset-shader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3DS Homebrew Demo: Scanline Offset Shader

Preview

This repo contains a homebrew demo for the 3DS the replicates the common retro game console effect of offsetting scanlines horizontally. It's done here through a geometry shader that when given an Nx16 sprite, makes 16 one-pixel-tall strips (2 triangles each). Each strip is then offset by indexing into an array uniform that contains a value for every y-value on the screen.

Contained here is the entirety of citro2d, hackily edited to work with this. it was done just for convenience - you could certainly make it play nicely with citro2d without having to edit it.

Please feel free to use this however you want!

About

A 3DS homebrew example program that implements a scanline offset / hblank effect with a geometry shader.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published