fix a bug on warp3d.dll
parent
d5117b6cf7
commit
e0b2ee80f9
|
@ -297,9 +297,9 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
|||
waterHeight,
|
||||
m_scene.RegionInfo.RegionSizeY * 0.5f);
|
||||
|
||||
warp_Material waterColorMaterial = new warp_Material(ConvertColor(WATER_COLOR));
|
||||
renderer.Scene.addMaterial("WaterColor", waterColorMaterial);
|
||||
renderer.SetObjectMaterial("Water", "WaterColor");
|
||||
warp_Material waterMaterial = new warp_Material(ConvertColor(WATER_COLOR));
|
||||
renderer.Scene.addMaterial("WaterMat", waterMaterial);
|
||||
renderer.SetObjectMaterial("Water", "WaterMat");
|
||||
}
|
||||
|
||||
// Add a terrain to the renderer.
|
||||
|
@ -419,8 +419,8 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
|||
texture = new warp_Texture(image);
|
||||
|
||||
warp_Material material = new warp_Material(texture);
|
||||
renderer.Scene.addMaterial("TerrainColor", material);
|
||||
renderer.SetObjectMaterial("Terrain", "TerrainColor");
|
||||
renderer.Scene.addMaterial("TerrainMat", material);
|
||||
renderer.SetObjectMaterial("Terrain", "TerrainMat");
|
||||
}
|
||||
|
||||
private void CreateAllPrims(WarpRenderer renderer)
|
||||
|
|
BIN
bin/Warp3D.dll
BIN
bin/Warp3D.dll
Binary file not shown.
Loading…
Reference in New Issue