mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-21 04:06:45 +00:00
Remove more unused code
This commit is contained in:
parent
59a0d9c01f
commit
09a39c8716
1 changed files with 1 additions and 9 deletions
|
@ -191,17 +191,9 @@ fragment vertical(target=RT_Vertical, rt1=RT_Horizontal) {
|
|||
fragment final(rt1=RT_Vertical) {
|
||||
omw_In vec2 omw_TexCoord;
|
||||
|
||||
float clampify(float x, float clamp)
|
||||
{
|
||||
if(x < clamp)
|
||||
return x;
|
||||
return ((x-clamp)*0.5)+clamp;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
vec3 color = vec3(0.0);
|
||||
color = omw_Texture2D(RT_Vertical, omw_TexCoord).rgb;
|
||||
vec3 color = omw_Texture2D(RT_Vertical, omw_TexCoord).rgb;
|
||||
// add dithering (in gamma-compressed light, because monitors are sRGB)
|
||||
color = powv(color, 1.0/uGamma);
|
||||
color += (scramblev2(omw_TexCoord).rgb/255.0 - vec3(0.5/255.0))*2.0;
|
||||
|
|
Loading…
Reference in a new issue