- Home /
Question by
Mosp2 · Sep 03, 2020 at 05:53 PM ·
shaderscript.shader programminggraph
Can I make a lasting variable in Shader Graph?,
Hi, I'm trying to make a custom node for Shader Graph to toggle a signal. For example, after the first time a Sine signal and an boolean are true, it will give a pulse. This pulse is then maintained until it is reset. To achieve this I had come up with the following node code:
.
.
.
.
However this does not seem to work as the variable is being reset to it's original state every cycle. Is there any way to have this variable maintain it's value after each frame?
,
knipsel3.jpg
(23.4 kB)
Comment