Counter



Table of contents:


Description:
This node will store and increase a start value by the amount input from the "Increase Value" each time it is called in a shader-tree. That value will be reset to "Start Value" once the user defined reset condition ("Mode") is true.
Just like the "Hold Value" node its main purpose are sampled node networks.


Location:
The node will be added to the "Pom's Nodes/Math" menu under the name "Counter".
Settings:

Mode:
Counter Equal To A: The counter will be reset if it is equal to A.

Counter Greater/Less Than A: The counter will be reset if it is greater/less than A.

Counter Greater/Less Than Or Equal To A: The counter will be reset if it is greater/less than or equal to A.

A Does Change: The counter will be reset if A has the same value twice in a row.

A Does Not Change: The counter will be reset if A changes the value.

A (Not) Equal To B: The counter will be reset if A is (not) equal to B.

A Greater/Less Than B: The counter will be reset if A is greater/less than B.

A Greater/Less Than Or Equal To B: The counter will be reset if A is greater/less than or equal to B.

Start Value:
The value which the counter starts counting with and is reset to, if a reset condition is true.

Increase Value:
The value which will be added to the counter upon each call.

A / B:
Just like in LightWave's native Logic node, these fields express values used to check the condition defined by the mode.


Counter