_AMDG_ icon

Realism.glsl (Dolphin Post Processing Shader)

_AMDG_ | PRO | 07/18/19 11:09:54 AM UTC | 0 ⭐ | 7986 👁️ | Never ⏰ | []
OpenGL Shading |

0 B

|

None

|

0 👍

/

0 👎

/*
    Realism.fx by Andrew Porter
    
    Makes lighting appear more realistic by making darkness darker and lightness lighter.
    
*/
 
 
float4 fshRealism(float4 color) {
    color.a = 0.5f * dot(color.rgb, vec3(0.3333333333333333f));
    color.rgb = (color.rgb * color.a) + color.rgb - (color.a);
    
    return color;
}
 
void main() {
    float4 color = Sample();
    SetOutput(fshRealism(color));
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎