mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make chimneys glow
This commit is contained in:
parent
55c6966ad9
commit
e461fbd951
@ -101,7 +101,7 @@ float cloud_shadow(vec3 pos, vec3 light_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*/) {
|
||||
|
@ -168,8 +168,10 @@ impl Block {
|
||||
#[inline]
|
||||
pub fn get_glow(&self) -> Option<u8> {
|
||||
match self.get_sprite()? {
|
||||
SpriteKind::StreetLamp | SpriteKind::StreetLampTall => Some(20),
|
||||
SpriteKind::Velorite | SpriteKind::VeloriteFrag => Some(3),
|
||||
SpriteKind::StreetLamp | SpriteKind::StreetLampTall => Some(24),
|
||||
SpriteKind::Ember => Some(20),
|
||||
SpriteKind::WallLamp => Some(16),
|
||||
SpriteKind::Velorite | SpriteKind::VeloriteFrag => Some(6),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user