You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi !
I didn't know where to ask for help so here I am.
I was getting into shader programming and wanted to implement a bayer dithering shader, however I can't seem to get anything else than a white screen, so I wondered if anyone could lend me a hand on the subject !
At first I thought my brightness calculation was broken so I tried with a simple filter, if a pixel is above the threshold set it to white and it works perfectly fine as you can see here:
(output when using color.rgb = simple_lum_filter(lum, 0.3);)
This tells me brightness is fine so it must be an issue with my bayer matrix somewhere since I'm only getting white output (lum is always > threshold), the value I get from the matrix must be always 0 or almost 0 ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi !
I didn't know where to ask for help so here I am.
I was getting into shader programming and wanted to implement a bayer dithering shader, however I can't seem to get anything else than a white screen, so I wondered if anyone could lend me a hand on the subject !
Here's my current program :
At first I thought my brightness calculation was broken so I tried with a simple filter, if a pixel is above the threshold set it to white and it works perfectly fine as you can see here:
(output when using

color.rgb = simple_lum_filter(lum, 0.3);)This tells me brightness is fine so it must be an issue with my bayer matrix somewhere since I'm only getting white output (lum is always > threshold), the value I get from the matrix must be always 0 or almost 0 ?
If anyone could help me there I'd be grateful !
Have a good one !
All reactions