Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
509 B

//====== 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;
}