Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /*-----------------------------------------------------------.
  2. / SinCity /
  3. '-----------------------------------------------------------*/
  4.  
  5. float4 SinCityPass( float4 colorInput )
  6. {
  7. colorInput = pow(colorInput, .45f);
  8. float3 bwcolor = dot(colorInput.rgb, 1.f.xxx) * 0.33333f;
  9. float weight = smoothstep(0.1f, 0.25f, colorInput.r - bwcolor);
  10. bwcolor = pow(bwcolor * 1.1f, 2.f);
  11. float3 colorout = lerp(bwcolor, colorInput * float3(1.1f, 0.5f, 0.5f), weight);
  12. return pow(float4(colorout, 1.f), 2.2f);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement