Пример #1
0
        public void DrawBoundingBoxes(Mesh3d container, int instances)
        {
            Material.Use();
            container.SetUniforms();
            //ShaderProgram.Current.SetUniform("ForwardPass", InternalRenderingState.PassState == InternalRenderingState.State.ForwardTransparentBlendingAlphaPass ? 0 : 1);
            ModelInfosBuffer.Use(0);

            //BoundingBoxInfo3d.DrawInstanced(InstancesFiltered);
            if (DisableFaceCulling)
            {
                GL.Disable(EnableCap.CullFace);
            }
            Info3d.DrawInstanced(InstancesFiltered);
            if (DisableFaceCulling)
            {
                GL.Enable(EnableCap.CullFace);
            }
        }