mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-29 02:12:54 +08:00
17 lines
350 B
HLSL
17 lines
350 B
HLSL
|
|
Texture2D<float4> Lightmap : register(t0);
|
|
SamplerState TextureSS : register(s0);
|
|
|
|
struct VS_OUTPUT
|
|
{
|
|
float4 Position : SV_POSITION;
|
|
float2 Texcoord : TEXCOORD0;
|
|
float4 Colour : COLOR0;
|
|
};
|
|
|
|
float4 main(VS_OUTPUT input) : SV_TARGET
|
|
{
|
|
//return float4(1,0,0,1);
|
|
return Lightmap.Sample(TextureSS, input.Texcoord) * input.Colour;
|
|
}
|