add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
20
gamedata/shaders/r2/accum_omni_unshadowed.ps
Normal file
20
gamedata/shaders/r2/accum_omni_unshadowed.ps
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "common.h"
|
||||
#include "lmodel.h"
|
||||
|
||||
half4 main ( float4 tc:TEXCOORD0 ) : COLOR
|
||||
{
|
||||
const half bias_mul = 0.999f;
|
||||
|
||||
// Sample the fat framebuffer:
|
||||
half4 _P = tex2Dproj (s_position, tc);
|
||||
half4 _N = tex2Dproj (s_normal, tc);
|
||||
|
||||
half m = xmaterial ;
|
||||
# ifndef USE_R2_STATIC_SUN
|
||||
m = _P.w ;
|
||||
# endif
|
||||
|
||||
half rsqr;
|
||||
half4 light = plight_local (m, _P, _N, Ldynamic_pos, Ldynamic_pos.w, rsqr);
|
||||
return blendp (Ldynamic_color * light, tc);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue