I'm trying to follow this thread:
https://godotforums.org/d/25242-lightning-2d-change-black-to-white
In it they say this, but I don't see any associated code, so I'm not exactly sure how to compare the vec4 like this.
You don't want to do a direct comparison using == due to floating point precision errors, and instead just want to check if the difference is under a certain amount.
They reference an attached project, but I'm not seeing that in the archived thread.
The visual effect can be seen here, and is an approximation for the scene lighting up due to a flash of lightning. I'm looking for the "flash" to effect the whole scene but I'm not interested in the lightning bolt itself.
https://www.reddit.com/r/godot/comments/l1df83/shader_for_a_lightning_effect/
I'm on Godot 3.5.3.