This commit is contained in:
tamat
2018-03-07 19:23:45 +01:00
parent b1e2c3dbbf
commit dd61eb9a8e

View File

@@ -13,7 +13,10 @@ if(typeof(LiteGraph) != "undefined")
this.properties = { aberration:1.0, distortion: 1.0, blur: 1.0, precision: LGraphTexture.DEFAULT };
if(!LGraphFXLens._shader)
{
LGraphFXLens._shader = new GL.Shader( Shader.SCREEN_VERTEX_SHADER, LGraphFXLens.pixel_shader );
LGraphFXLens._texture = new GL.Texture(3,1,{ format: gl.RGB, wrap: gl.CLAMP_TO_EDGE, magFilter: gl.LINEAR, minFilter: gl.LINEAR, pixel_data: [255,0,0, 0,255,0, 0,0,255] });
}
}
LGraphFXLens.title = "Lens";
@@ -35,7 +38,6 @@ if(typeof(LiteGraph) != "undefined")
this._tex = LGraphTexture.getTargetTexture( tex, this._tex, this.properties.precision );
//iterations
var aberration = this.properties.aberration;
if( this.isInputConnected(1) )
{