mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
slightly improved moon fading
This commit is contained in:
parent
c9ceb74e5c
commit
b3db4f1c27
1 changed files with 2 additions and 0 deletions
|
@ -167,6 +167,8 @@ Moon::Moon( const String& textureName,
|
||||||
"{ \n"
|
"{ \n"
|
||||||
" float4 tex = tex2D(texture, uv); \n"
|
" float4 tex = tex2D(texture, uv); \n"
|
||||||
" oColor = float4(emissive.xyz,1) * tex2D(texture, uv) * float4(1,1,1,diffuse.a); \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->setSource(outStream2.str());
|
||||||
fshader->load();
|
fshader->load();
|
||||||
|
|
Loading…
Reference in a new issue