1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Various changes and fixes

Hopefully this works, I haven't yet checked in detail for any problems.
This commit is contained in:
Gefüllte Taubenbrust 2025-05-20 21:40:19 +02:00
parent e05544b84e
commit 51cb37570a
14 changed files with 72 additions and 56 deletions

View file

@ -539,7 +539,7 @@ void main(void)
#endif
#if (defined(ENABLE_NODE_SPECULAR) && !MATERIAL_WATER_REFLECTIONS)
// Apply specular to blocks.
// Apply specular to nodes.
if (dot(v_LightDirection, vNormal) < 0.0) {
// This intensity/roughness is a placeholder and should be replaced by proper specular maps.
float intensity = 0.35 * min(1.0, length(varColor.rgb * base.rgb));