mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-23 15:32:54 +08:00
15 lines
231 B
HLSL
15 lines
231 B
HLSL
|
|
||
|
struct VS_OUTPUT
|
||
|
{
|
||
|
float4 Position : SV_POSITION;
|
||
|
float4 Colour : COLOR0;
|
||
|
float CullValue : TEXCOORD0;
|
||
|
};
|
||
|
|
||
|
|
||
|
float4 main(VS_OUTPUT input) : SV_TARGET
|
||
|
{
|
||
|
if (input.CullValue < -0.18) discard;
|
||
|
return input.Colour;
|
||
|
}
|