1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

38 lines
856 B
HLSL
Raw Normal View History

2024-04-09 15:15:11 -03:00
/**********************************************************************************
// Pixel (Arquivo de Sombreamento)
//
// Cria<69><61>o: 11 Jul 2007
// Atualiza<7A><61>o: 13 Ago 2021
// Compilador: D3DCompiler
//
// Descri<72><69>o: Define um pixel shader que apenas multiplica a cor do objeto
// pela cor da textura, depois de fazer uma amostragem linear
// ou anisotr<74>pica
//
**********************************************************************************/
Texture2D resource;
SamplerState linearfilter
{
Filter = MIN_MAG_MIP_LINEAR;
};
SamplerState anisotropic
{
Filter = ANISOTROPIC;
MaxAnisotropy = 4;
};
struct pixelIn
{
float4 Pos : SV_POSITION;
float4 Color : COLOR;
float2 Tex : TEXCOORD;
};
float4 main(pixelIn pIn) : SV_TARGET
{
return resource.Sample(linearfilter, pIn.Tex) * pIn.Color;
}