home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 April
/
Gamestar_83_2006-04_dvd.iso
/
Dema
/
demowot_english.exe
/
InfDX
/
Shaders
/
dirt-default-overlay-pixel.hlsl
< prev
next >
Wrap
Text File
|
2005-07-04
|
952b
|
36 lines
//***************************************************************************
// Author: Laszlo Rimoczi (Rimo)
// Purpose: Dirt.mat
//
// Copyright (C) 2005 by Digital Reality Inc.
// All rights reserved.
//
// This source may not be distributed and/or modified without
// expressly written permission by Digital Reality Inc.
//***************************************************************************
struct VS_OUTPUT
{
#if defined(TDX_SHADERFLAG_VERTEXCOLOR)||defined(TDX_SHADERFLAG_LIGHTING)
half4 Diffuse: COLOR0;
#endif
float2 UV: TEXCOORD0;
};
float4 TDX_CONST_MODELCOLOR;
sampler sampler_albedo: register(s0);
half4 main(VS_OUTPUT In): COLOR
{
half4 Albedo=tex2D(sampler_albedo, In.UV);
#if defined(TDX_SHADERFLAG_VERTEXCOLOR)||defined(TDX_SHADERFLAG_LIGHTING)
Albedo*=In.Diffuse;
#endif
#if TDX_SHADERFLAG_MODELCOLOR
Albedo*=TDX_CONST_MODELCOLOR;
#endif
return Albedo;
}