Add a subtle vignette filter and change torch light effects
This commit is contained in:
parent
bf9cb1759b
commit
4d8423e7fe
|
@ -191,4 +191,3 @@ minetest.register_on_leaveplayer(default.hud.cleanup_builtin_statbars)
|
|||
minetest.register_playerevent(default.hud.player_event_handler)
|
||||
|
||||
default.log("hud", "loaded")
|
||||
|
||||
|
|
|
@ -1234,6 +1234,7 @@ minetest.register_node(
|
|||
walkable = false,
|
||||
floodable = true,
|
||||
light_source = default.LIGHT_MAX-4,
|
||||
overlay_light_type = "bright_glow",
|
||||
node_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-2/16, 0, -2/16, 2/16, 0.5, 2/16},
|
||||
|
@ -1298,7 +1299,7 @@ minetest.register_node(
|
|||
walkable = false,
|
||||
floodable = true,
|
||||
light_source = default.LIGHT_MAX-1,
|
||||
overlay_light_type = "glow_flicker",
|
||||
overlay_light_type = "bright_flicker",
|
||||
node_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-2/16, 0, -2/16, 2/16, 0.5, 2/16},
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
Vignette mod
|
||||
============
|
||||
By KaadmY, for Pixture
|
||||
|
||||
Adds a subtle vignette overlay to a player's screen
|
||||
|
||||
Source license: LGPLv2.1
|
|
@ -0,0 +1 @@
|
|||
default
|
|
@ -0,0 +1,24 @@
|
|||
--
|
||||
-- Vignette mod
|
||||
-- By KaadmY, for Pixture
|
||||
--
|
||||
|
||||
local vignette_definition = {
|
||||
hud_elem_type = "image",
|
||||
position = {x = 0.5, y = 0.5},
|
||||
scale = {x = -100, y = -100},
|
||||
alignment = 0,
|
||||
text = "vignette_vignette.png",
|
||||
}
|
||||
|
||||
local function on_joinplayer(player)
|
||||
if not player:is_player() then
|
||||
return
|
||||
end
|
||||
|
||||
player:hud_add(vignette_definition)
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(on_joinplayer)
|
||||
|
||||
default.log("mod:vignette", "loaded")
|
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
Binary file not shown.
Loading…
Reference in New Issue