Skip to main content
Version: 5.x

Nodes > Math > Common > Discard

Discard

Discard the current pixel if the given conditions are met.

Inputs

NameTypeDescription
AfloatThe input value.
ThresholdfloatWhen the selected color channel of the input value is below this value, the pixel is discarded. Only used in Color Channel mode.
BoolfloatWhen Custom mode is selected, this bool value controls whether or not the pixel is discarded, intended to be used with custom logic.

Outputs

NameTypeDescription
ValuefloatPassed through A value

Properties

NameTypeDescription
Discard ModedropdownThe 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.
ChanneldropdownWhen Color Channel is selected, the threshold value is compared against this color channel.
Was this page helpful?
Yes
No