mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
19 lines
421 B
HLSL
19 lines
421 B
HLSL
#include "DrawQuad.h"
|
|
|
|
SamplerState surfaceSampler : register(s0);
|
|
Texture2D<float3> surfaceTexture : register(t0);
|
|
|
|
struct SDrawQuadPixelOutput
|
|
{
|
|
float4 color : SV_TARGET;
|
|
};
|
|
|
|
SDrawQuadPixelOutput PSMain(SDrawQuadPixelInput input)
|
|
{
|
|
float3 surfaceColor = surfaceTexture.Load(int3(input.texCoord.xy, 0)).rgb;
|
|
|
|
SDrawQuadPixelOutput result;
|
|
result.color = float4(surfaceColor, 1.0);
|
|
return result;
|
|
}
|