Exemple #1
0
 internal void RenderPass2()
 {
     // draw chunk if drawbuffer has been calculated
     if (pass2VertexBuffer.Vertices != null)
     {
         t.StartDrawingTiledQuadsPass2();
         t.Draw(pass2VertexBuffer);
     }
 }
        private void RenderPlayerRayImpact(float partialStep)
        {
            if (!World.Instance.PlayerVoxelTrace.Hit)
            {
                return;
            }
            t.ResetTransformation();
            //t.StartDrawingTiledQuadsWTF();
            t.StartDrawingTiledQuadsPass2();
            Vector4 buildPos = World.Instance.PlayerVoxelTrace.ImpactPosition;

            t.Translate.X = buildPos.X + 0.5f;
            t.Translate.Y = buildPos.Y + 0.5f;
            t.Translate.Z = buildPos.Z + 0.5f;
            float s = 1.01f;

            t.Scale = new Vector3(s, s, s);
            t.Draw(TileTextures.Instance.GetSelectionBlockVertexBuffer());
            return;
        }