This commit is contained in:
2025-09-06 14:46:49 -07:00
parent 8368a55d7c
commit d830a05d98
816 changed files with 2899 additions and 2586 deletions

View File

@@ -44,10 +44,10 @@ vec3 apply_dithering(vec3 color, vec2 screen_pos) {
vec3 threshold = random_noise_vec3(screen_pos);
vec3 error = fract(color_scaled / 8.0);
return color + step(threshold, error) * PALETTE_STEP;
}
}
else {
float threshold = (dither_mode == 0) ?
magic_matrix[int(mod(screen_pos.y, 4.0))][int(mod(screen_pos.x, 4.0))] :
float threshold = (dither_mode == 0) ?
magic_matrix[int(mod(screen_pos.y, 4.0))][int(mod(screen_pos.x, 4.0))] :
bayer_matrix[int(mod(screen_pos.y, 4.0))][int(mod(screen_pos.x, 4.0))];
vec3 quantized = floor(color_scaled / 8.0) * 8.0;
vec3 can_dither = step(quantized, vec3(247.0)) * step(vec3(1.0), color_scaled);