mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 04:35:41 -04:00
Data: Fix crt-lottes.glsl for D3D renders
This commit is contained in:
parent
a1d7d214cf
commit
f4ffaa1e3c
@ -164,7 +164,7 @@ float3 ToSrgb(float3 c)
|
|||||||
float3 Fetch(float2 pos,float2 off){
|
float3 Fetch(float2 pos,float2 off){
|
||||||
pos=(floor(pos*GetResolution()+off)+float2(0.5,0.5))*GetInvResolution();
|
pos=(floor(pos*GetResolution()+off)+float2(0.5,0.5))*GetInvResolution();
|
||||||
#ifdef SIMPLE_LINEAR_GAMMA
|
#ifdef SIMPLE_LINEAR_GAMMA
|
||||||
return ToLinear(GetOption(brightBoost) * pow(SampleLocation(pos.xy).rgb, float3(2.2)));
|
return ToLinear(GetOption(brightBoost) * pow(SampleLocation(pos.xy).rgb, float3(2.2, 2.2, 2.2)));
|
||||||
#else
|
#else
|
||||||
return ToLinear(GetOption(brightBoost) * SampleLocation(pos.xy).rgb);
|
return ToLinear(GetOption(brightBoost) * SampleLocation(pos.xy).rgb);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user