[POC] Fix editor screenshots with HDR enabled (linear 2 sRGB on half-floats).#119093
[POC] Fix editor screenshots with HDR enabled (linear 2 sRGB on half-floats).#119093bruvzg wants to merge 1 commit intogodotengine:masterfrom
Conversation
|
This, to me, is a whole new feature added to the |
e48629d to
f828ce4
Compare
|
Haven't tested this yet, but sometime before this is ready for review, docs will need to be updated in at least these three spots:
|
|
Here is a list of other places that call these updated functions that might benefit from reworking in the same way as
|
Seems like
Updated. |
|
For the reference current half-float code is about 10 times slower than RGBA8 lookup table code, it's still acceptable for screenshots (takes about 0.5 sec for 8K image in debug build), but likely is not OK for Edit: if parallelized, it's slightly faster than RGBA8, but offloading it to GPU would likely be a better option. |
Same as #119013, but doing linear-to-sRGB transform before converting to 8-bit.
Opening it for reference only, code probably need optimization to work on low-end systems.
This PR:

#119013:
