add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
29
gamedata/shaders/r3/copy_p.ps
Normal file
29
gamedata/shaders/r3/copy_p.ps
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include "common.h"
|
||||
|
||||
#ifndef ISAMPLE
|
||||
#define ISAMPLE 0
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Pixel
|
||||
// TODO: DX10: move to load instead of sample (will need to provide integer texture coordinates)
|
||||
#ifdef MSAA_OPTIMIZATION
|
||||
float4 main ( float4 tc : TEXCOORD0, uint iSample : SV_SAMPLEINDEX ) : SV_Target
|
||||
#else
|
||||
float4 main ( float4 tc : TEXCOORD0 ) : SV_Target
|
||||
#endif
|
||||
{
|
||||
//return tex2Dproj (s_base,tc);
|
||||
|
||||
// Perform texture coordinates projection.
|
||||
tc.xy /= tc.w;
|
||||
#ifndef USE_MSAA
|
||||
return s_generic.Sample( smp_nofilter, tc );
|
||||
#else
|
||||
#ifdef MSAA_OPTIMIZATION
|
||||
return s_generic.Load( int3( tc * pos_decompression_params2.xy, 0 ), iSample );
|
||||
#else
|
||||
return s_generic.Load( int3( tc * pos_decompression_params2.xy, 0 ), ISAMPLE );
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue