How can I use that in unity, like Generate the image directly in a scene ?
Since this isn't a Unity project, there isn't really a way to do that. If you're comfortable with shader code you could try porting it to Unity shader code
Im not but I will try !
Good luck!