Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 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));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement