mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
tweaked the cloud animation speed
This commit is contained in:
parent
91ffacbb6d
commit
83753dc384
@ -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…
x
Reference in New Issue
Block a user