Exemple #1
0
        private static void DrawMesh(RMesh m, Camera camera, RSkeleton skeleton, Shader currentShader, string previousMaterialName, GenericMaterial previousUniforms)
        {
            if (m.Material != null && m.Material.Name != previousMaterialName)
            {
                m.SetMaterialUniforms(currentShader, previousUniforms);
                m.RenderMesh.SetRenderState(m.Material);
            }

            m.Draw(currentShader, camera, skeleton);
        }
Exemple #2
0
        private static void DrawMesh(Camera Camera, RSkeleton Skeleton, Shader currentShader, string previousMaterialName, RMesh m)
        {
            if (m.Material != null && m.Material.Name != previousMaterialName)
            {
                m.SetMaterialUniforms(currentShader);
                m.RenderMesh.SetRenderState(m.Material);
            }

            m.Draw(currentShader, Camera, Skeleton);
        }