e4s-sdk/gamedata/shaders/r1/particle_distort.ps
2026-06-17 23:06:51 +03:00

18 lines
422 B
PostScript

#include "common.h"
struct v2p
{
float2 tc0 : TEXCOORD0; // base
half4 c : COLOR0; // diffuse
};
//////////////////////////////////////////////////////////////////////////////////////////
// Pixel
uniform sampler s_distort;
half4 main_ps_1_1 ( v2p I ) : COLOR
{
half4 distort = tex2D (s_distort,I.tc0);
half factor = distort.a * dot(I.c.rgb,0.33h);
return half4 (distort.rgb,factor);
}