TexturePass constructor

TexturePass(
  1. dynamic map,
  2. dynamic opacity
)

Implementation

TexturePass(map, opacity) : super() {
  if (CopyShader == null) print('THREE.TexturePass relies on CopyShader');

  var shader = CopyShader;

  this.map = map;
  this.opacity = (opacity != null) ? opacity : 1.0;

  this.uniforms = UniformsUtils.clone(shader["uniforms"]);

  this.material = new ShaderMaterial({
    "uniforms": this.uniforms,
    "vertexShader": shader["vertexShader"],
    "fragmentShader": shader["fragmentShader"],
    "depthTest": false,
    "depthWrite": false
  });

  this.needsSwap = false;

  this.fsQuad = FullScreenQuad(null);
}