Moved Shaders src to CodeWalker.Shaders

This commit is contained in:
Carmine Giugliano
2019-11-18 16:25:40 +01:00
Unverified
parent 5eaea931bf
commit 2013535aec
86 changed files with 6 additions and 6 deletions
+24
View File
@@ -0,0 +1,24 @@
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);
}