Monochrome.h 522 B

1234567891011121314151617
  1. /*-----------------------------------------------------------.
  2. / Monochrome /
  3. '-----------------------------------------------------------*/
  4. /*
  5. by Christian Cann Schuldt Jensen ~ CeeJay.dk
  6. Monochrome removes color and makes everything black and white.
  7. */
  8. float4 MonochromePass( float4 colorInput )
  9. {
  10. //calculate monochrome
  11. colorInput.rgb = dot(Monochrome_conversion_values, colorInput.rgb);
  12. //Return the result
  13. return saturate(colorInput);
  14. }