Make chimneys glow

This commit is contained in:
Joshua Barretto 2020-11-22 02:00:22 +00:00
parent 55c6966ad9
commit e461fbd951
2 changed files with 5 additions and 3 deletions

View File

@ -101,7 +101,7 @@ float cloud_shadow(vec3 pos, vec3 light_dir) {
} }
float get_sun_brightness(/*vec3 sun_dir*/) { float get_sun_brightness(/*vec3 sun_dir*/) {
return max(-sun_dir.z + 0.5, 0.0) * 0.9; return max(-sun_dir.z + 0.5, 0.0);
} }
float get_moon_brightness(/*vec3 moon_dir*/) { float get_moon_brightness(/*vec3 moon_dir*/) {

View File

@ -168,8 +168,10 @@ impl Block {
#[inline] #[inline]
pub fn get_glow(&self) -> Option<u8> { pub fn get_glow(&self) -> Option<u8> {
match self.get_sprite()? { match self.get_sprite()? {
SpriteKind::StreetLamp | SpriteKind::StreetLampTall => Some(20), SpriteKind::StreetLamp | SpriteKind::StreetLampTall => Some(24),
SpriteKind::Velorite | SpriteKind::VeloriteFrag => Some(3), SpriteKind::Ember => Some(20),
SpriteKind::WallLamp => Some(16),
SpriteKind::Velorite | SpriteKind::VeloriteFrag => Some(6),
_ => None, _ => None,
} }
} }