Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
513 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef COMMON_FXC2_H_
  9. #define COMMON_FXC2_H_
  10. // This file is here so you can add new utility functions without
  11. // changing common_fxc.h and causing a recompile of the entire universe.
  12. float LinearToMonochrome ( float3 r )
  13. {
  14. return dot( r, float3( 0.299f, 0.587f, 0.114f ) );
  15. }
  16. #endif //#ifndef COMMON_FXC2_H_