TexturePass constructor

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

Implementation

TexturePass(this.map, opacity) : super() {
  var shader = copyShader;

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

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

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

  needsSwap = false;

  fsQuad = FullScreenQuad(null);
}