We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Mosaic: Difference between revisions
From SnesLab
(created page) |
(added category; sprite unaffected) |
||
Line 6: | Line 6: | ||
where size is the value of bits 4-7 of 2106h plus one. Thus, the shaded output consists of a grid of solid-colored squares where each entire square's color matches that of its top-leftmost input pixel. | where size is the value of bits 4-7 of 2106h plus one. Thus, the shaded output consists of a grid of solid-colored squares where each entire square's color matches that of its top-leftmost input pixel. | ||
The first mosaic square's location is always (0,0). | The first mosaic square's location is always (0,0). Sprites are unaffected by the mosaic filter. | ||
=== References === | === References === | ||
* https://archive.org/details/SNESDevManual/book1/page/n201 | * https://archive.org/details/SNESDevManual/book1/page/n201 | ||
* https://problemkaputt.de/fullsnes.htm#snesppubgcontrol | * https://problemkaputt.de/fullsnes.htm#snesppubgcontrol | ||
[[Category:Video]] |
Revision as of 01:36, 8 June 2023
Mosaic is a screen pixellation effect. It can be enabled or disabled on a per-background basis via bits 0-3 of 2106h. For a given background, the color of the pixel at screen position (H,V) is:
output_color(H,V) = input_color(floor(H/size)*size, floor(V/size)*size)
where size is the value of bits 4-7 of 2106h plus one. Thus, the shaded output consists of a grid of solid-colored squares where each entire square's color matches that of its top-leftmost input pixel.
The first mosaic square's location is always (0,0). Sprites are unaffected by the mosaic filter.