add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
10
gamedata/shaders/r2/accum_sun_mask.ps
Normal file
10
gamedata/shaders/r2/accum_sun_mask.ps
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "common.h"
|
||||
|
||||
#define EPS (0.9f/255.f)
|
||||
half4 main ( p_screen I ) : COLOR
|
||||
{
|
||||
// Sample the fat framebuffer:
|
||||
half4 NH = tex2D (s_normal, I.tc0);
|
||||
half L = NH.w * dot (Ldynamic_dir, (half3)NH) + EPS; // Use hemisphere as approximation of max light
|
||||
return half4 (L,L,L,L);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue