]> git.lizzy.rs Git - minetest.git/commit
Apply shadow only to the naturally lit part of the fragment color (#11722)
authorx2048 <codeforsmile@gmail.com>
Sun, 31 Oct 2021 18:18:30 +0000 (19:18 +0100)
committerGitHub <noreply@github.com>
Sun, 31 Oct 2021 18:18:30 +0000 (19:18 +0100)
commitcef016d393959e989df259aeacd055fc702a55ca
treefc1907616d74818da7a321567952db22eabd5641
parent532d5b21fdff8bd8aa460b010ebd3bef1b9878dd
Apply shadow only to the naturally lit part of the fragment color (#11722)

Fragment color for nodes is now calculated from:

 * Texture color, highlighted by artificial light if present (light color conveyed via vertex color).
 * Texture color highlighted by natural light (conveyed via vertex color) filtered by shadow.
 * Reflected day/moonlight filtered by shadow (color and intensity), assuming some portion of the light is directly reflected from the materials.
client/shaders/nodes_shader/opengl_fragment.glsl
client/shaders/shadow_shaders/pass1_trans_fragment.glsl