question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why gamma correction is not used in fragment shader?

See original GitHub issue

I’m sorry this might be off topic. I guess all shaders that render into screen should use gamma correction since most of designer design textures in sRGB color space. However, the shader used in this repository is not using gamma correction like gl_FragColor = pow(color,vec3(1.0/2.2)).

Is that correct?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
snagycommented, Nov 3, 2017

Fixed in #55

Thanks for bringing attention to this!

0reactions
kyasbalcommented, Dec 6, 2017

@snagy Thank you for reconsideration. I’m very honer to help this repository to improve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gamma correction on fragment shaders. - Riccardo Scalco
This post is about the usage of gamma correction on fragment shaders, what it is and when it is appropriate to apply gamma...
Read more >
Gamma Correction - LearnOpenGL
Gamma correction. The idea of gamma correction is to apply the inverse of the monitor's gamma to the final output color before displaying...
Read more >
Why gamma correction is not used in fragment shader? #50
I guess all shaders that render into screen should use gamma correction since most of designer design textures in sRGB color space.
Read more >
Do I need output gamma correction in a fragment shader?
Every fragment shader output is routed to a specific image in the framebuffer (based on glDrawBuffers state). That image has a format.
Read more >
[Unity] Always Be Linear: Shader-Based Gamma Correction
Theoretically, we can convert the light color to linear space in the shader but actually, this is not possible because unity send the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found