mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 13:22:20 +01:00
19 lines
344 B
Plaintext
19 lines
344 B
Plaintext
#include "ShaderConstantsGNM.h"
|
|
|
|
struct PS_Input
|
|
{
|
|
float4 position : S_POSITION;
|
|
float2 uv : TEXCOORD_0;
|
|
};
|
|
|
|
float4 main( in PS_Input PSInput ) : S_TARGET_OUTPUT
|
|
{
|
|
float4 diffuse = TEXTURE_0.Sample( TextureSampler0, PSInput.uv );
|
|
|
|
if( diffuse.a < 0.5 )
|
|
{
|
|
discard;
|
|
}
|
|
|
|
return CURRENT_COLOR;
|
|
} |