17 lines
395 B
HLSL
17 lines
395 B
HLSL
// Does nothing, serves as an example of a minimal pixel shader
|
|
Texture2D shaderTexture;
|
|
SamplerState samplerState;
|
|
|
|
cbuffer PixelShaderSettings {
|
|
float Time;
|
|
float Scale;
|
|
float2 Resolution;
|
|
float4 Background;
|
|
};
|
|
|
|
float4 main(float4 pos : SV_POSITION, float2 tex : TEXCOORD) : SV_TARGET
|
|
{
|
|
float4 color = shaderTexture.Sample(samplerState, tex);
|
|
|
|
return color;
|
|
} |