Variable Size Regions! Support for prehash RegionSizeX and large patches. (WIP)
Mostly from Ukando, tweaked a bit to be cleaner, and a little less dramatic. decode_patch_header now takes a bool optionally, as third argument. _PREHASH_RegionSizeX is the only used of the two _PREHASH_RegionSize*. llsurface.cpp: Copy the connectNeighbor for variable size regions almost directly from Ukando llsurfacepatch.cpp: Patch code from ukando and voodoo. Changed hardcoded 256 constants and such to width functions in: llglsandbox.cpp, llsurface.cpp, llviewerregion.cpp, llviewerparcelmanager, llviewerparcelmgr.cpp, llvowater.cpp, llworld.cpp Use region specific width in: llagent.cpp, llglsandbox.cpp, llmanip.cpp, llmanipscale.cpp, llpanelobject.cpp, llviewerbject.cpp, llwind.cpp Use 256 in llnetmap.cpp in places... llfloaterregioninfo.cpp: Aurora grid has wacky textures. Add LLViewerParcelMgr::widthUpdate() for updating mParcelsPerEdge given a region's width. Used in llstartup now. Add LLWorld::setWidth() for getting a region's size from LLMessageSystem pointers and setting mWidth and mWidthInMeters, accordingly. Called in llviewermessage.cpp as well.
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
#include "noise.h"
|
||||
#include "v4color.h"
|
||||
#include "llagent.h"
|
||||
#include "llworld.h"
|
||||
#include "llviewerregion.h"
|
||||
|
||||
const F32 CLOUD_DIVERGENCE_COEF = 0.5f;
|
||||
|
||||
@@ -254,7 +254,7 @@ LLVector3 LLWind::getVelocity(const LLVector3 &pos_region)
|
||||
|
||||
LLVector3 pos_clamped_region(pos_region);
|
||||
|
||||
F32 region_width_meters = LLWorld::getInstance()->getRegionWidthInMeters();
|
||||
F32 region_width_meters = gAgent.getRegion()->getWidth();
|
||||
|
||||
if (pos_clamped_region.mV[VX] < 0.f)
|
||||
{
|
||||
@@ -321,7 +321,7 @@ LLVector3 LLWind::getCloudVelocity(const LLVector3 &pos_region)
|
||||
|
||||
LLVector3 pos_clamped_region(pos_region);
|
||||
|
||||
F32 region_width_meters = LLWorld::getInstance()->getRegionWidthInMeters();
|
||||
F32 region_width_meters = gAgent.getRegion()->getWidth();
|
||||
|
||||
if (pos_clamped_region.mV[VX] < 0.f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user