From fd426354f17f008b6aff3d8094be7a7ec97a6bc5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 7 May 2018 06:08:54 +0100 Subject: [PATCH] breaking map (warp3d) --- .../CoreModules/World/Warp3DMap/Warp3DImageModule.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs index b69ca9ecb6..b41a27c81f 100644 --- a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs +++ b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs @@ -220,8 +220,8 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap renderer.Scene.defaultCamera.lookAt(lookat); #endregion Camera - renderer.Scene.addLight("Light1", new warp_Light(new warp_Vector(1.0f, 0.5f, 1f), 0xffffff, 0, 320, 40)); - renderer.Scene.addLight("Light2", new warp_Light(new warp_Vector(-1f, -1f, 1f), 0xffffff, 0, 100, 40)); + renderer.Scene.setAmbient(warp_Color.getColor(192,191,173)); + renderer.Scene.addLight("Light1", new warp_Light(new warp_Vector(0f, 1f, 8f), 0xffffff, 0, 320, 40)); CreateWater(renderer); CreateTerrain(renderer); @@ -310,10 +310,6 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap { for (x = 0; x < regionsx; x += diff) { - if(x == 48 && y == 36) - { - - } pos = ConvertVector(x , y , (float)terrain[(int)x, (int)y]); obj.addVertex(new warp_Vertex(pos, x * invsx, 1.0f - y * invsy)); }