e4s-sdk/gamedata/shaders/r2/portal.ps
2026-06-17 23:06:51 +03:00

19 lines
No EOL
347 B
PostScript

#include "common.h"
half4 main ( half4 C:COLOR0 ) : COLOR
{
half4 result;
#ifdef USE_VTF
result.rgb = C;
#else
half4 high;
half scale = tex2D(s_tonemap,half2(.5h,.5h)).x;
// tonemap (result, high, C, scale*0.9);
tonemap (result, high, C, scale);
#endif
result.a = C.a;
return result;
}