mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Filmic HDR tone mapping
This commit is contained in:
parent
180893e79d
commit
eb3840a3f8
6 changed files with 101 additions and 14 deletions
|
@ -764,6 +764,9 @@ ShaderInfo generate_shader(std::string name, u8 material_type, u8 drawtype,
|
|||
else
|
||||
shaders_header += "0\n";
|
||||
|
||||
if (g_settings->getBool("tone_mapping"))
|
||||
shaders_header += "#define ENABLE_TONE_MAPPING\n";
|
||||
|
||||
if(pixel_program != "")
|
||||
pixel_program = shaders_header + pixel_program;
|
||||
if(vertex_program != "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue