21 lines
		
	
	
		
			487 B
		
	
	
	
		
			PostScript
		
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			487 B
		
	
	
	
		
			PostScript
		
	
	
	
|  | /** | ||
|  |  * @ Version: SCREEN SPACE SHADERS - UPDATE 21 | ||
|  |  * @ Description: HUD Motion Vectors | ||
|  |  * @ Modified time: 2024-07-06 04:10 | ||
|  |  * @ Author: https://www.moddb.com/members/ascii1457 | ||
|  |  * @ Mod: https://www.moddb.com/mods/stalker-anomaly/addons/screen-space-shaders | ||
|  |  */ | ||
|  | 
 | ||
|  | #include "ssfx_skin_hud.h" | ||
|  | 
 | ||
|  | float4 main(v2p_hud I) : SV_Target | ||
|  | { | ||
|  | 	// Position | ||
|  | 	float2 pos_a = (I.PC.xy / I.PC.w); | ||
|  | 	float2 pos_b = (I.PP.xy / I.PP.w); | ||
|  | 
 | ||
|  | 	float2 uv_rp = ( pos_a - pos_b ); | ||
|  | 	 | ||
|  | 	return	float4( 0, uv_rp.xy, 0); | ||
|  | } |