Add a workaround for leaves' culling changes
This commit is contained in:
parent
ba29de40ae
commit
d5274c0b5b
|
@ -748,7 +748,7 @@ impl Model {
|
||||||
let tint = this.get_tint();
|
let tint = this.get_tint();
|
||||||
|
|
||||||
for face in &self.faces {
|
for face in &self.faces {
|
||||||
if face.cull_face != Direction::Invalid {
|
if face.cull_face != Direction::Invalid && !this_mat.never_cull {
|
||||||
let (ox, oy, oz) = face.cull_face.get_offset();
|
let (ox, oy, oz) = face.cull_face.get_offset();
|
||||||
let other = snapshot.get_block(x + ox, y + oy, z + oz);
|
let other = snapshot.get_block(x + ox, y + oy, z + oz);
|
||||||
if other.get_material().should_cull_against || other == this {
|
if other.get_material().should_cull_against || other == this {
|
||||||
|
@ -756,7 +756,6 @@ impl Model {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let (mut cr, mut cg, mut cb) = (255, 255, 255);
|
let (mut cr, mut cg, mut cb) = (255, 255, 255);
|
||||||
match face.tint_index {
|
match face.tint_index {
|
||||||
0 => {
|
0 => {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue