Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

After creating filter with lut texture i see a weird outline under the dots

$
0
0
vertShader:string = `
// https://github.com/pixijs/pixi.js/issues/6436 * this one!!!
//pixi.js/packages/core/src/fragments/default.vert
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 1.0, 1.0);
vTextureCoord = aTextureCoord;
}
`;
fragShader:string = `
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform sampler2D u_lut;
 
void main(void)
{
vec4 pixelColor = texture2D(uSampler, vTextureCoord);
gl_FragColor = texture2D(u_lut, vec2(pixelColor.r, 0.0));
}
`;
 
const filter = new PIXI.Filter(this.vertShader, this.fragShader, this.uniforms);
container.filters = [filter];

Screen Shot 2022-09-30 at 9.38.08 AM.png

Screen Shot 2022-09-30 at 9.38.17 AM.png


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>