Skip to content

Texture: add disableSRGBInternalFormat flag to prevent shader recomplie#133

Open
JichenZhang wants to merge 1 commit intooppenfuture:r137-devfrom
JichenZhang:shader-recompile
Open

Texture: add disableSRGBInternalFormat flag to prevent shader recomplie#133
JichenZhang wants to merge 1 commit intooppenfuture:r137-devfrom
JichenZhang:shader-recompile

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