ShadowMaterial and opacity: options not availlable in constructor parameters.

Hi,

Opacity parameter not considered when using it in the parameters object
For example, this doesn’t set the opacity:
var shadowMaterial = new THREE.ShadowMaterial( { opacity: 0.5 } );

You have to do this:
shadowMaterial.opacity = 0.5;

Not a big issue, but it’s inconsistant with the other material constructors.
Got me scratching my head for a while.

Three.js version
  • r84
Browser
  • All of them
OS
  • All of them

Author: Fantashit

1 thought on “ShadowMaterial and opacity: options not availlable in constructor parameters.

Comments are closed.