Divergent/mods/Boomsticks and Sharpsticks/gamedata/shaders/r1/models_laserbeam.ps

22 lines
458 B
PostScript

#include "common.h"
struct v2p
{
half2 tc0: TEXCOORD0; // base
half2 tc1: TEXCOORD1; // lmap
half4 c0: COLOR0; // sun
};
uniform half4 shader_param_5;
//////////////////////////////////////////////////////////////////////////////////////////
// Pixel
half4 main_ps_1_1 ( v2p I ) : COLOR
{
half4 t_base = tex2D (s_base,I.tc0);
t_base *= shader_param_5.x; //Only first component is used
return half4(t_base.xyz, t_base.w * I.c0.w);
}