2
0
Эх сурвалжийг харах

Merge pull request #44206 from Calinou/physical-sky-increase-dithering

Increase dithering in the PhysicalSkyMaterial shader to combat banding
Rémi Verschelde 4 жил өмнө
parent
commit
f9e3750ced

+ 1 - 1
scene/resources/sky_material.cpp

@@ -568,7 +568,7 @@ PhysicalSkyMaterial::PhysicalSkyMaterial() {
 	code += "\tCOLOR = pow(color, vec3(1.0 / (1.2 + (1.2 * sun_fade))));\n";
 	code += "\tCOLOR *= exposure;\n";
 	code += "\t// Make optional, eliminates banding\n";
-	code += "\tCOLOR += (hash(EYEDIR * 1741.9782) * 0.08 - 0.04) * 0.008 * dither_strength;\n";
+	code += "\tCOLOR += (hash(EYEDIR * 1741.9782) * 0.08 - 0.04) * 0.016 * dither_strength;\n";
 	code += "}\n";
 
 	shader = RS::get_singleton()->shader_create();