mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-20 23:20:36 +02:00
[TEST] Adjusting sRGB formula
This commit is contained in:
parent
bfdc50ee76
commit
a7d274e5bd
1 changed files with 2 additions and 3 deletions
|
|
@ -1407,9 +1407,8 @@ void DecompressBlock(ivec3 coord) {
|
|||
vec4((C0 * (uvec4(64) - weight_vec) + C1 * weight_vec + uvec4(32)) / 64);
|
||||
p = Cf / 65535.0f;
|
||||
#ifdef VULKAN
|
||||
if (is_srgb != 0u) {
|
||||
p.yzw = SRGBToLinear(p.yzw);
|
||||
}
|
||||
// Another test
|
||||
p.yzw = mix(p.yzw, SRGBToLinear(p.yzw), bvec3(is_srgb != 0u));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue