blob: 24364ce08bbcd816493b9ad7688ae80b8dea7e5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#include "common_ps_fxc.h"
sampler EnvmapSampler : register( s0 );
struct PS_INPUT
{
float3 eyeToVertVector : TEXCOORD0;
float4 vertexColor : COLOR;
};
HALF4 main( PS_INPUT i ) : COLOR
{
HALF4 color;
color.xyz = texCUBE( EnvmapSampler, i.eyeToVertVector );
color.a = 1.0f;
color *= i.vertexColor;
return color;
}
|