feat(vf): extend Block with BossBar and BossState
This commit is contained in:
1 parent
b14c722431
commit
76f2be284b
2 files changed
+169
-1
No files matched your search
@@ -490,6 +490,13 @@ inline int blockLightEmission(Block b) {
|
||||
case Block::FurnaceLit: return 13;
|
||||
case Block::RedstoneTorch: return 7;
|
||||
case Block::RedstoneOre: return 0; // lit only on touch, handled by gameplay
|
||||
case Block::EndPortal: return 15;
|
||||
case Block::SeaLantern: return 15;
|
||||
case Block::Lantern: return 15;
|
||||
case Block::NetherPortal: return 11;
|
||||
case Block::CryingObsidian: return 10;
|
||||
case Block::EnchantingTable: return 7;
|
||||
case Block::Magma: return 3;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
@@ -499,7 +506,8 @@ inline bool occludesLight(Block b) { return isOpaque(b); }
|
||||
|
||||
// Meshed in the transparent pass (depth write off, back-to-front): fluids + ice.
|
||||
inline bool isTransparent(Block b) {
|
||||
return b == Block::Water || b == Block::Ice;
|
||||
return b == Block::Water || b == Block::Ice || b == Block::Glass ||
|
||||
b == Block::NetherPortal || b == Block::EndPortal;
|
||||
}
|
||||
|
||||
} // namespace vf
|
||||
Reference in new issue
Block a user