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

Texture: add disableSRGBInternalFormat flag to prevent shader recomplie #133

Open
wants to merge 1 commit into
base: r137-dev
Choose a base branch
from

Conversation

JichenZhang
Copy link

Description

Add a flag called "disableSRGBInternalFormat" to Texture instances.
If the flag is set to true, we prevent using gl's sRGB internal format, so that the output format of a shader becomes sRGB, which is consistent with what the sceen expects. Thus, we prevent shader recompliation when using a WebGLRenderTarget rather than the screen - the already compiled shaders (who was serving the screen in the beginning) can be used.

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.

1 participant