Jump to content

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


SRD
 Share

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...