mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
tweaked the cloud animation speed
This commit is contained in:
parent
91ffacbb6d
commit
83753dc384
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,8 @@
|
|||
using namespace MWRender;
|
||||
using namespace Ogre;
|
||||
|
||||
// the speed at which the clouds are animated
|
||||
#define CLOUD_SPEED 0.0025
|
||||
|
||||
// this distance has to be set accordingly so that the
|
||||
// celestial bodies are behind the clouds, but in front of the atmosphere
|
||||
|
@ -369,7 +371,7 @@ SkyManager::SkyManager (SceneNode* pMwRoot, Camera* pCamera)
|
|||
" uniform float4 emissive \n"
|
||||
") \n"
|
||||
"{ \n"
|
||||
" uv += float2(1,1) * time * 0.01; \n" // Scroll in x,y direction
|
||||
" uv += float2(1,1) * time * "<<CLOUD_SPEED<<"; \n" // Scroll in x,y direction
|
||||
" float4 tex = tex2D(texture, uv); \n"
|
||||
" oColor = color * float4(emissive.xyz,1) * tex2D(texture, uv); \n"
|
||||
"}";
|
||||
|
|
Loading…
Reference in a new issue