Esempio n. 1
0
        public override void Animation(RenderControl render, float time)
        {
            int selector = (int)time % 2;

            mNode.GetShape().SetFaceMaterial(selector == 1 ? mMaterial1 : mMaterial2);

            render.RequestDraw();
        }
        public override void Animation(RenderControl render, float time)
        {
            int selector = (int)time % 2;

            var faces = mNode.GetShape().GetFaces();

            foreach (var face in faces)
            {
                face.SetMaterial(selector == 1? mMaterial1 : mMaterial2);
            }

            render.RequestDraw();
        }