Using shader for cubes

I am trying to use a shader to get an effect like this. Notice how

  • every cube has exactly the same lightning as every other no matter where it is on the screen
  • if you look closely the lightning is making the front face’s top parts darker, and the front face’s lower parts lighter (about 20% difference at most)
  • also most importantly, notice that the edges of the cubes are smoothed ( filleted ) and foggy-looking

I am drawing my cubes like this with the default lightning.

        cubeEffect.EnableDefaultLighting();
        for (int i = 0; i < 10; i++)
        {
            for (int j = 0; j < 25; j++)
            {
                // apply the effect and render the cube
                foreach (EffectPass pass in cubeEffect.CurrentTechnique.Passes)
                {
                    cubeEffect.World = Matrix.CreateTranslation(-15.6f + i * 3.05f, 15.5f - j * 1.168f, 0.0f);
                    pass.Apply();
                    //draw
                    RenderToDevice(GraphicsDevice);
                }
            }
        }

This is how my cubes looks like with the default lightning… i am trying to achieve an effect like the first image. I have no experience with lightning effects and how to do something like this so, i’d appreciate any help on how to get started.

2

i gave a “solution” to this by making a 3d model in blender… now i have trouble loading the .fbx file to my project it says “couln’t load as a non-content file”, i am trying to make a content project and i get an error missing project subtype