|
@@ -5,9 +5,13 @@ import { UniformsUtils } from '../renderers/shaders/UniformsUtils';
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author mrdoob / http://mrdoob.com/
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
|
+ *
|
|
|
|
+ * parameters = {
|
|
|
|
+ * opacity: <float>
|
|
|
|
+ * }
|
|
*/
|
|
*/
|
|
|
|
|
|
-function ShadowMaterial() {
|
|
|
|
|
|
+function ShadowMaterial( parameters ) {
|
|
|
|
|
|
ShaderMaterial.call( this, {
|
|
ShaderMaterial.call( this, {
|
|
uniforms: UniformsUtils.merge( [
|
|
uniforms: UniformsUtils.merge( [
|
|
@@ -35,6 +39,8 @@ function ShadowMaterial() {
|
|
}
|
|
}
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
+ this.setValues( parameters );
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
ShadowMaterial.prototype = Object.create( ShaderMaterial.prototype );
|
|
ShadowMaterial.prototype = Object.create( ShaderMaterial.prototype );
|