jdgleaver / drastic_ds_shaders

Shaders for DraStic DS emulator
42 stars 21 forks source link

Grid size of zfast_lcd #1

Open Faberman opened 5 years ago

Faberman commented 5 years ago

Hello. Is it possible to get a consistent grid size in portrait and landscape modes? The screen resolution is 2160x1080, so in portrait mode I use top and bottom NDS screens in 4x scale (1024x768) and in landscape mode I use only top screen in 5x scale (1280x960). But in 5x scale the grid size is roughly 2x bigger than in 4x scale. I would like to get a subtle grid pattern of 4x scale also in 5x scale.

x4 scale: http://funkyimg.com/i/2Sx6s.png x5 scale: http://funkyimg.com/i/2Sx6r.png

jdgleaver commented 5 years ago

Hi @Faberman,

Sorry for the delayed reply - I only just noticed this issue (I rarely look at this repo...)

The grid width is actually scaling correctly - you're seeing the grid more clearly at 5x scale simply because there are more pixels. Each line is effectively a bell curve, and the higher the pixel density the further down the y axis it samples (kind of).

So I guess that doesn't help you much - but it seems you just want to decrease the 'intensity' of the grid pattern when running at 5x scale? If so, you can do this by tweaking the BORDERMULT parameter.

zfast_lcd+nds_color.dfx -> zfast_lcd+nds_color__light.dfx
name=zFast LCD + NDS Color

becomes:

name=zFast LCD + NDS Color (light)

Hope that helps!