- Edit file as root:
/usr/share/minetest/client/shaders/nodes_shader/opengl_vertex.glsl
If you don't know how to edit that file, try:
sudo nano /usr/share/minetest/client/shaders/nodes_shader/opengl_vertex.glsl
- 0.4.15 and early
Find the following line:
float light_source = gl_Color.b;
Add the following line below that line:
light_source = clamp(light_source, 0.05, 1.0);
- 0.4.16 and later
Find the following line:
gl_FrontColor = gl_BackColor = clamp(color, 0.0, 1.0);
And change the 0.0 to 0.1
gl_FrontColor = gl_BackColor = clamp(color, 0.1, 1.0);
- Ctrl-O will save in nano and Ctrl-X quits.
You must restart Minetest after modifying the shader file.
-
- The 0.05/0.1 sets the minimum light level for blocks.
This only effects blocks whose light level is below 0.05/0.1.
So blocks that have sunlight or other lighting won't be changed.