mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Filmic HDR tone mapping
This commit is contained in:
@@ -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 != "")
|
||||
|
Reference in New Issue
Block a user