Пример #1
0
        private void RenderMaterialPreview(NUD.Material material)
        {
            if (!tabControl1.SelectedTab.Text.Equals("Textures"))
            {
                return;
            }

            GL.Viewport(texAlphaGlControl.ClientRectangle);
            RenderTools.DrawNudMaterialSphere(material);
            texRgbGlControl.SwapBuffers();

            if (!Runtime.shaders["Texture"].HasCheckedCompilation)
            {
                Runtime.shaders["Texture"].DisplayProgramStatus("Texture");
            }
        }