12 lines
		
	
	
		
			267 B
		
	
	
	
		
			PostScript
		
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			267 B
		
	
	
	
		
			PostScript
		
	
	
	
|  | #include "common.h" | ||
|  | #include "screenspace_common.h" | ||
|  | #include "screenspace_dof.h" | ||
|  | 
 | ||
|  | float4 main(p_screen I) : SV_TARGET | ||
|  | { | ||
|  | 	float3 P = SSFX_get_position(I.tc0, 0); | ||
|  | 	float3 img = s_image.Sample(smp_nofilter, I.tc0).rgb; | ||
|  | 
 | ||
|  | 	return float4(SSFX_DOF( I.tc0, P, img ), 1.0); | ||
|  | } |