dist/bas.module.js
function createDepthAnimationMaterial(sourceMaterial) {
    return new DepthAnimationMaterial({
      uniforms: sourceMaterial.uniforms,
      defines: sourceMaterial.defines,
      vertexFunctions: sourceMaterial.vertexFunctions,
      vertexParameters: sourceMaterial.vertexParameters,
      vertexInit: sourceMaterial.vertexInit,
      vertexPosition: sourceMaterial.vertexPosition
    });
  }
function createDepthAnimationMaterial(sourceMaterial) {
    return new DepthAnimationMaterial({
      uniforms: sourceMaterial.uniforms,
      defines: sourceMaterial.defines,
      vertexFunctions: sourceMaterial.vertexFunctions,
      vertexParameters: sourceMaterial.vertexParameters,
      vertexInit: sourceMaterial.vertexInit,
      vertexPosition: sourceMaterial.vertexPosition
    });
  }
function createDepthAnimationMaterial ( sourceMaterial ) { return new DepthAnimationMaterial ( { uniforms : sourceMaterial . uniforms , defines : sourceMaterial . defines , vertexFunctions : sourceMaterial . vertexFunctions , vertexParameters : sourceMaterial . vertexParameters , vertexInit : sourceMaterial . vertexInit , vertexPosition : sourceMaterial . vertexPosition } ) ; }
Create a THREE.BAS.DepthAnimationMaterial for shadows from a THREE.SpotLight or THREE.DirectionalLight by copying relevant shader chunks.
Uniform values must be manually synced between the source material and the depth material.

@see {@link http://three-bas-examples.surge.sh/examples/shadows/}

@param {THREE.BAS.BaseAnimationMaterial} sourceMaterial Instance to get the shader chunks from.
@returns {THREE.BAS.DepthAnimationMaterial}
Create a THREE . BAS . DepthAnimationMaterial for shadows from a THREE . SpotLight or THREE . DirectionalLight by copying relevant shader chunks . Uniform values must be manually synced between the source material and the depth material .