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

21 lines
422 B
PostScript
Raw Normal View History

2024-03-17 20:18:03 -04:00
#include "common.h"
struct v2p
{
float2 tc0: TEXCOORD0; // base
float4 c0: COLOR0; // sun
};
float4 shader_param_5;
//////////////////////////////////////////////////////////////////////////////////////////
// Pixel
float4 main( v2p I ) : SV_Target
{
float4 t_base = s_base.Sample(smp_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);
}