Shadowing Type Constants

These define the shadow map types used by the WebGLRenderer.

Shadow Map Types

THREE.BasicShadowMap

Unfiltered shadow maps - fastest, but lowest quality.

THREE.PCFShadowMap

Shadow maps filtered using the Percentage-Closer Filtering (PCF) algorithm (default).

THREE.PCFSoftShadowMap

Shadow maps filtered using the Percentage-Closer Soft Shadows (PCSS) algorithm.

Usage

var renderer = new THREE.WebGLRenderer(); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFShadowMap; //default Note that this just enables shadows in the renderer and sets the shadow map type.
To actually cast shadows you will have to set up shadows for the any light you want to cast shadows, and for meshes you want to cast / receive shadows.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/constants.js src/constants.js]