mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-29 02:12:54 +08:00
25 lines
412 B
HLSL
25 lines
412 B
HLSL
|
|
||
|
cbuffer PSMoonVars : register(b0)
|
||
|
{
|
||
|
float4 Colour;
|
||
|
}
|
||
|
|
||
|
Texture2D<float4> MoonSampler : register(t0);
|
||
|
SamplerState TextureSS : register(s0);
|
||
|
|
||
|
struct VS_OUTPUT
|
||
|
{
|
||
|
float4 Position : SV_POSITION;
|
||
|
float2 Texcoord : TEXCOORD0;
|
||
|
};
|
||
|
|
||
|
|
||
|
float4 main(VS_OUTPUT input) : SV_TARGET
|
||
|
{
|
||
|
float2 texc = input.Texcoord;
|
||
|
float4 m = MoonSampler.Sample(TextureSS, texc);
|
||
|
|
||
|
return float4(Colour.rgb*m.rgb, m.a);
|
||
|
}
|
||
|
|