Ejemplo n.º 1
0
        public override void Draw(Scene scene, Matrix4x4 viewProjectionMatrix, Framebuffer framebuffer = null)
        {
            LineRenderer.BeginScene(viewProjectionMatrix);

            scene.OnRender(new EditorDrawRenderEvent());

            LineRenderer.EndScene();
        }
Ejemplo n.º 2
0
        public override void Draw(Scene scene, Matrix4x4 viewProjectionMatrix, Framebuffer framebuffer = null)
        {
            if (framebuffer != null)
            {
                framebuffer.EnableColorDrawBuffer(scene.Pipeline.FbStructureIndex.Color, true);
                framebuffer.EnableColorDrawBuffer(scene.Pipeline.FbStructureIndex.Id, false);
            }

            Renderer.SetDepthFunc(DepthFunc.LessEqual);
            LineRenderer.BeginScene(viewProjectionMatrix);
            {
                scene.OnRender(new LineRenderEvent());
            }
            LineRenderer.EndScene();
            Renderer.SetDepthFunc(DepthFunc.Default);
        }