Counter Strike : Global Offensive Source Code
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.

16 lines
524 B

  1. /* SCE CONFIDENTIAL */
  2. /* PlayStation(R)3 Programmer Tool Runtime Library 350.001 */
  3. /* Copyright (C) 2006 Sony Computer Entertainment Inc. */
  4. /* All Rights Reserved. */
  5. void main
  6. (
  7. float4 color_in : COLOR,
  8. float4 normal_in : TEX0,
  9. out float4 color_out : COLOR
  10. )
  11. {
  12. color_out = color_in * max( 0.15, 0.15 + ( dot( normalize( normal_in ), float4( 0.577,0.577,-0.577,0 ) ) ) )
  13. //+ float4( 0.2 * abs( normal_in.xyz ), 0 )
  14. ;
  15. }