From b3db4f1c27ef73f5175d020d844ffc7bff05cee0 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 28 Feb 2012 15:20:46 +0100 Subject: [PATCH] slightly improved moon fading --- apps/openmw/mwrender/sky.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwrender/sky.cpp b/apps/openmw/mwrender/sky.cpp index 448050240..23d99b6cd 100644 --- a/apps/openmw/mwrender/sky.cpp +++ b/apps/openmw/mwrender/sky.cpp @@ -167,6 +167,8 @@ Moon::Moon( const String& textureName, "{ \n" " float4 tex = tex2D(texture, uv); \n" " oColor = float4(emissive.xyz,1) * tex2D(texture, uv) * float4(1,1,1,diffuse.a); \n" + " float bump = pow((1-diffuse.a),4); \n" + " oColor.rgb += float3(bump, bump, bump)*0.5; \n" "}"; fshader->setSource(outStream2.str()); fshader->load();