20 lines
537 B
PostScript
20 lines
537 B
PostScript
/**
|
|
* @ Version: SCREEN SPACE SHADERS - UPDATE 21
|
|
* @ Description: Water - No Blur ( Only smp_linear )
|
|
* @ Modified time: 2024-03-18 13:24
|
|
* @ Author: https://www.moddb.com/members/ascii1457
|
|
* @ Mod: https://www.moddb.com/mods/stalker-anomaly/addons/screen-space-shaders
|
|
*/
|
|
|
|
//#include "common.h"
|
|
#include "screenspace_common.h"
|
|
|
|
Texture2D water_buffer;
|
|
|
|
uniform float4 blur_setup;
|
|
|
|
float4 main ( p_screen I ) : SV_Target
|
|
{
|
|
float2 tc = I.tc0.xy * blur_setup.w;
|
|
return float4(water_buffer.SampleLevel(smp_linear, tc, 0).rgb, 1);
|
|
} |