Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GLES2-compatible shader #10

Merged
merged 1 commit into from Oct 22, 2021

Conversation

JapanYoshi
Copy link
Contributor

I tried using the shader in my GLES2 project, but it contained a function it didn't support (texelFetch), so I coded a simple version of the shader on my own. It's slightly inaccurate, but it should be enough for most purposes.

  • It should be compatible with all the default LUT images.
  • It uses texture() instead of texelFetch().
  • It doesn't do gamma correction; everything is linearly interpolated.
  • It doesn't touch the alpha channel at all.

@JapanYoshi JapanYoshi mentioned this pull request Jul 8, 2021
@JapanYoshi
Copy link
Contributor Author

@thiagoamendola Hello?

@thiagoamendola
Copy link
Owner

@JapanYoshi Sorry for the late answer. According to #9, this feature was recently added to Godot 4. Does the new native implementation solve your needs or do you still see the need for your GLES2 PR?

@JapanYoshi
Copy link
Contributor Author

There is still a need for Godot 3 to have a GLES2-compatible shader.

@thiagoamendola thiagoamendola merged commit c4a1440 into thiagoamendola:master Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants