Add a subtle vignette filter and change torch light effects

This commit is contained in:
KaadmY 2017-07-24 16:38:08 -07:00
parent bf9cb1759b
commit 4d8423e7fe
7 changed files with 34 additions and 2 deletions

View File

@ -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")

View File

@ -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},

7
mods/vignette/README.txt Normal file
View File

@ -0,0 +1,7 @@
Vignette mod
============
By KaadmY, for Pixture
Adds a subtle vignette overlay to a player's screen
Source license: LGPLv2.1

View File

@ -0,0 +1 @@
default

24
mods/vignette/init.lua Normal file
View File

@ -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.