add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
18
gamedata/shaders/r2/deffer_impl_bump.ps
Normal file
18
gamedata/shaders/r2/deffer_impl_bump.ps
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "common.h"
|
||||
#include "sload.h"
|
||||
|
||||
f_deffer main ( p_bumped I )
|
||||
{
|
||||
f_deffer O;
|
||||
|
||||
surface_bumped S = sload (I);
|
||||
|
||||
// Sample normal, rotate it by matrix, encode position
|
||||
half3 Ne = mul (half3x3(I.M1, I.M2, I.M3), S.normal);
|
||||
Ne = normalize (Ne);
|
||||
O.Ne = half4 (Ne, S.base.w);
|
||||
O.position= half4 (I.position.xyz + Ne*S.height*def_virtualh, xmaterial);
|
||||
O.C = half4 (S.base.x,S.base.y,S.base.z,S.gloss); // OUT: rgb.gloss
|
||||
|
||||
return O;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue