diff --git a/data/shaders/sunlight.frag b/data/shaders/sunlight.frag index 1553bfc0c..7669ce9c1 100644 --- a/data/shaders/sunlight.frag +++ b/data/shaders/sunlight.frag @@ -33,7 +33,6 @@ void main() { vec3 L = center; float NdotL = max(0.0, dot(norm, L)); - if (NdotL < 0.01) discard; vec3 outcol = NdotL * col; diff --git a/src/graphics/sun.cpp b/src/graphics/sun.cpp index e9c029822..b6217730b 100644 --- a/src/graphics/sun.cpp +++ b/src/graphics/sun.cpp @@ -47,6 +47,8 @@ SunNode::SunNode(scene::ISceneManager* mgr, float r, float g, float b): m.setTexture(1, irr_driver->getRTT(RTT_DEPTH)); m.setTexture(2, irr_driver->getTexture((file_manager->getTextureDir() + "cloudshadow.png").c_str())); m.setFlag(EMF_BILINEAR_FILTER, false); + m.MaterialTypeParam = pack_textureBlendFunc(EBF_ONE, EBF_ONE); + m.BlendOperation = EBO_ADD; if (UserConfigParams::m_shadows) {