summaryrefslogtreecommitdiffstats
path: root/Projects/Asteroids/src/skybox_ps.hlsl
blob: 4107073d521782832c7910d11c4fb03137e0e6fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
struct Skybox_VSOut
{
	float3 coords   : UVFACE;
};

TextureCube Skybox;// : register(t0);
SamplerState Skybox_sampler;// : register(s0);

void skybox_ps(in float4 position : SV_Position,
               in Skybox_VSOut vsoutput,
               out float4 color : SV_Target)
{   
    //return input.coords.xyzx;
    float4 tex = Skybox.Sample(Skybox_sampler, vsoutput.coords);
    color = float4(tex.xyz, 1.0f);
}