DotScreenPass constructor
Implementation
DotScreenPass(Vector2? center, num? angle, num? scale) : super() {
if (DotScreenShader == null) {
print('THREE.DotScreenPass relies on DotScreenShader');
}
var shader = DotScreenShader;
this.uniforms = UniformsUtils.clone(shader["uniforms"]);
if (center != null) this.uniforms['center']["value"].copy(center);
if (angle != null) this.uniforms['angle']["value"] = angle;
if (scale != null) this.uniforms['scale']["value"] = scale;
this.material = new ShaderMaterial({
"uniforms": this.uniforms,
"vertexShader": shader["vertexShader"],
"fragmentShader": shader["fragmentShader"]
});
this.fsQuad = new FullScreenQuad(this.material);
}