GPU optimization question: pre-computed or procedural?
- by Jay
Good morning,
I'm learning shader program and need some general direction.
I want to add noise to my laser beam (like this).
Which is the best way to handle it?
I could pre-compute an image and pass it to the shader. I could then use the image to change the opacity and easily animate the smoke by changing the offset of the texture lookup.
I could also generate noise in the shader and do the same thing the texture was used for.
Is it generally better to avoid I/O to the graphics card or the opposite?
Thanks!