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

22 lines
450 B
PostScript
Raw Normal View History

2024-03-17 20:18:03 -04:00
#include "common.h"
struct v2p
{
float2 tc0: TEXCOORD0; // base
float2 tc1: TEXCOORD1; // lmap
float4 c0: COLOR0; // sun
};
float4 shader_param_5;
//////////////////////////////////////////////////////////////////////////////////////////
// Pixel
float4 main ( v2p I ) : COLOR
{
float4 t_base = tex2D (s_base,I.tc0);
t_base *= shader_param_5.x; //Only first component is used
return float4(t_base.xyz, t_base.w * I.c0.w);
}