Even less blending.

This commit is contained in:
Pfauenauge90 2020-02-07 20:53:38 +01:00 committed by timokoesters
parent 0e7f3a6b00
commit 1b170f70c3
2 changed files with 2 additions and 3 deletions

View File

@ -20,8 +20,7 @@ trait Blendable {
impl Blendable for BlockKind {
fn is_blended(&self) -> bool {
match self {
BlockKind::Leaves => false,
_ => true,
_ => false,
}
}
}

View File

@ -85,7 +85,7 @@ fn get_col_quad(dirs: &[Vec3<i32>], cols: &[[[Rgba<u8>; 3]; 3]; 3]) -> Vec4<Rgb<
if col.a > 0 {
let col = Rgb::new(col.r, col.g, col.b).map(|e| e as f32);
if Vec3::<f32>::from(primary_col).distance_squared(Vec3::from(col))
< (0.00000001f32 * 256.0).powf(2.0)
< (0.025f32 * 256.0).powf(2.0)
{
color += col;
total += 256.0;