Exemple #1
0
        public override void Render()
        {
            TheClient.SetVox();
            Matrix4d mat = Matrix4d.CreateTranslation(-ClientUtilities.ConvertD(Offset)) * GetTransformationMatrix();

            TheClient.MainWorldView.SetMatrix(2, mat);
            vbo.Render(false);
        }
Exemple #2
0
 public override void Render()
 {
     if (vbo == null)
     {
         return;
     }
     TheClient.SetVox();
     OpenTK.Matrix4d mat = OpenTK.Matrix4d.Scale(ClientUtilities.ConvertD(scale)) * OpenTK.Matrix4d.CreateTranslation(ClientUtilities.ConvertD(shapeOffs)) * GetTransformationMatrix();
     TheClient.MainWorldView.SetMatrix(2, mat);
     TheClient.Rendering.SetColor(Color, TheClient.MainWorldView);
     vbo.Render();
     TheClient.Rendering.SetColor(Color4.White, TheClient.MainWorldView);
 }