mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-29 03:48:40 +00:00
[TEST] Adjusting sRGB formula
This commit is contained in:
@@ -1407,9 +1407,8 @@ void DecompressBlock(ivec3 coord) {
|
|||||||
vec4((C0 * (uvec4(64) - weight_vec) + C1 * weight_vec + uvec4(32)) / 64);
|
vec4((C0 * (uvec4(64) - weight_vec) + C1 * weight_vec + uvec4(32)) / 64);
|
||||||
p = Cf / 65535.0f;
|
p = Cf / 65535.0f;
|
||||||
#ifdef VULKAN
|
#ifdef VULKAN
|
||||||
if (is_srgb != 0u) {
|
// Another test
|
||||||
p.yzw = SRGBToLinear(p.yzw);
|
p.yzw = mix(p.yzw, SRGBToLinear(p.yzw), bvec3(is_srgb != 0u));
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user