Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Scanline Offset Shader 3DS: Difference between revisions

From GameBrew
(Created page with "{{Infobox 3DS Homebrews}} {{Infobox 3DS Homebrews |title=Scanline Offset Shader |image=scanlineoffsetshader2.png |description=A 3DS homebrew example program that implements...")
 
m (Text replacement - "Category:3DS homebrew applications" to "")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox 3DS Homebrews}}
{{Infobox 3DS Homebrews
{{Infobox 3DS Homebrews
|title=Scanline Offset Shader
|title=Scanline Offset Shader
|image=scanlineoffsetshader2.png
|image=Scanlineoffsetshader2.png
|description=A 3DS homebrew example program that implements a scanline offset / hblank effect with a geometry shader.  
|description=A 3DS homebrew example program that implements a scanline offset / hblank effect with a geometry shader.
|author=TheGag96
|author=TheGag96
|lastupdated=2022/04/19
|lastupdated=2022/04/19
Line 35: Line 34:


==External links==
==External links==
* GitHub - https://www.reddit.com/r/3dshacks/comments/u6rneo/scanline_offset_shader_demo_download_in_comments/
* GitHub - https://www.reddit.com/r/3dshacks/comments/u6rneo/scanline_offset_shader_demo_download_in_comments
* Reddit - https://github.com/TheGag96/3ds-scanline-offset-shader
* Reddit - https://github.com/TheGag96/3ds-scanline-offset-shader
[[Category:3DS homebrew applications]]
[[Category:3DS homebrew demos]]

Latest revision as of 03:37, 6 Mayıs 2024

Scanline Offset Shader
Scanlineoffsetshader2.png
General
AuthorTheGag96
TypeDemos
Version1.0
LicenseZlib
Last Updated2022/04/19
Links
Download
Website
Source

This is a demo that simulates the common retro console effect of creating a horizontal offset for each scanline on the screen in order to make different wave effects.

To make it works efficiently, it uses a geometry shader that takes in two points at a time and makes 16 one-pixel-high strips that are then offset from a table uniform that contains a value to shift for each Y-position on the screen.

It contains 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.

User guide

You can change some parameters for different effects.

Controls

Up/Down - Change the time step

Left/Right - Change amplitude

L/R - Change scanline speed

A - Sysle through the pattern function

Screenshots

scanlineoffsetshader3.gif

External links

Advertising: