mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Even less blending.
This commit is contained in:
parent
0e7f3a6b00
commit
1b170f70c3
@ -20,8 +20,7 @@ trait Blendable {
|
||||
impl Blendable for BlockKind {
|
||||
fn is_blended(&self) -> bool {
|
||||
match self {
|
||||
BlockKind::Leaves => false,
|
||||
_ => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user