public override void OnRender(Gaia.Rendering.RenderViews.RenderView view) { clutter.OnRender(view); TerrainElementManager terrMgr = (TerrainElementManager)view.GetRenderElementManager(RenderPass.Terrain); if(terrMgr != null) terrMgr.AddElement(climate, terrainElement); base.OnRender(view); }
public void RenderCollisionSkin(Gaia.Rendering.RenderViews.RenderView view) { VertexPositionColor[] wf = CollisionSkin.GetLocalSkinWireframe(); this.TransformWireframe(wf); DebugElementManager debugMgr = (DebugElementManager)view.GetRenderElementManager(Gaia.Rendering.RenderPass.Debug); debugMgr.AddElements(wf); }