I am experimenting with a simple Three.js scene (novice in this area). I am using the Three.js WebGLRenderer and have set up a plane, a cube that casts shadows and a directional light source. The result is shown in the image.
How do I:
1. Increase the quality of the shadow rendering?
2. Get rid of the jagged edges?
I have set the antialiasing to true but it does not seem to help in any browser ...
renderer = new THREE.WebGLRenderer({ antialias: true});
Another thing you could do is to increase the width/height of the segments of the object that receives the shadow.
For instance, change this:
by this:
Results:
You can do two things. First set a renderer attribute
and then you can also increase the shadowmap size of your light with: