mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Added a simple software "ambient occlusion" effect, like minecraft's "smooth lighting"
This commit is contained in:
parent
83414e8b73
commit
8c1f7a0dd2
2 changed files with 174 additions and 23 deletions
|
@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "guiTextInputMenu.h"
|
||||
#include "guiFurnaceMenu.h"
|
||||
#include "materials.h"
|
||||
#include "config.h"
|
||||
|
||||
/*
|
||||
Setting this to 1 enables a special camera mode that forces
|
||||
|
@ -1708,13 +1709,12 @@ void the_game(
|
|||
endscenetime_avg = endscenetime_avg * 0.95 + (float)endscenetime*0.05;
|
||||
|
||||
char temptext[300];
|
||||
snprintf(temptext, 300, "Minetest-c55 ("
|
||||
"F: item=%i"
|
||||
", R: range_all=%i"
|
||||
snprintf(temptext, 300, "Minetest-c55 %s ("
|
||||
"R: range_all=%i"
|
||||
")"
|
||||
" drawtime=%.0f, beginscenetime=%.0f"
|
||||
", scenetime=%.0f, endscenetime=%.0f",
|
||||
g_selected_item,
|
||||
VERSION_STRING,
|
||||
draw_control.range_all,
|
||||
drawtime_avg,
|
||||
beginscenetime_avg,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue