Discard the current pixel if the given conditions are met.
Inputs
Name
Type
Description
A
float
The input value.
Threshold
float
When the selected color channel of the input value is below this value, the pixel is discarded. Only used in Color Channel mode.
Bool
float
When Custom mode is selected, this bool value controls whether or not the pixel is discarded, intended to be used with custom logic.
Outputs
Name
Type
Description
Value
float
Passed through A value
Properties
Name
Type
Description
Discard Mode
dropdown
The mode used to determine if discard is activated at the given pixel. Color Channel compares a color channel from the input value with the threshold value. Black Level compares the luminance of the input rgb value with the threshold value. Custom simply uses the value of the input bool, allowing for custom logic.
Channel
dropdown
When Color Channel is selected, the threshold value is compared against this color channel.