How to get flat shadows?

Is is possible to have “flat shadows”? Now there is some kind of gradient applied, and lowering some values makes the shadow low-quality.

image

My current settings are:

new DirLight(new h3d.Vector(0.3, -0.4, -0.9), s3d);
s3d.lightSystem.ambientLight.setColor(0x6882A8);

var shadow = s3d.renderer.getPass(Shadows);
shadow.blur.radius = 0;
shadow.blur.quality = 1;

Unrelated question; how do I get anti aliasing on the boxes? It looks very “crisp” at the moment.

You need to use an alternate shadow shader to change the shadow rendering.
For AA, it’s now accessible with h3d.Engine.ANTIALIASING (but not fully tested), or you can do post processing FXAA