Thanks jonc, for a patch that adds rendering of classic clouds.

First part of Mantis #964, the necessary clouds image will follow separately.
This commit is contained in:
Homer Horwitz
2009-04-04 15:43:02 +00:00
parent 7acec9860d
commit 8136cf4075
10 changed files with 295 additions and 5 deletions

View File

@@ -1027,7 +1027,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Float llCloud(LSL_Vector offset)
{
m_host.AddScriptLPS(1);
return 0;
float cloudCover = 0f;
ICloudModule module = World.RequestModuleInterface<ICloudModule>();
if (module != null)
{
Vector3 pos = m_host.GetWorldPosition();
int x = (int)(pos.X + offset.x);
int y = (int)(pos.Y + offset.y);
cloudCover = module.CloudCover(x, y, 0);
}
return cloudCover;
}
public LSL_Vector llWind(LSL_Vector offset)