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

/* SCE CONFIDENTIAL */
/* PlayStation(R)3 Programmer Tool Runtime Library 350.001 */
/* Copyright (C) 2006 Sony Computer Entertainment Inc. */
/* All Rights Reserved. */
void main
(
float4 color_in : COLOR,
float4 normal_in : TEX0,
out float4 color_out : COLOR
)
{
color_out = color_in * max( 0.15, 0.15 + ( dot( normalize( normal_in ), float4( 0.577,0.577,-0.577,0 ) ) ) )
//+ float4( 0.2 * abs( normal_in.xyz ), 0 )
;
}