22 lines
450 B
PostScript
22 lines
450 B
PostScript
#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);
|
|
}
|