+1 vote

Hello, lately I've been desperately trying to make a bayer matrix dithering shader, which I kinda succeeded at, and it works pretty fine, but the problem comes when I want to introduce palette indexing to it, so I can clamp the dither to specific colors.

I have something like this in mind -shadertoy example-

but they used an array to introduce the palette and sub-palette into the shader, I've tried using a texture of the palette and sampler2D with texelFetch() to get the colors, but that didn't really work out and still left out the sub-palette to be desired.

If anyone of the more skilled shader-guys could help me, I would be really thankful. If any of you have something like this already made, I'm willing to buy a shader like this.

Thanks in advance,
-blank

in Engine by (128 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.