Skip to main content
Removed invalid link to imageshack (see http://meta.stackexchange.com/q/263771) (OP, please re-uploade to stack.imgur if you can)
Source Link
Vaillancourt
  • 16.4k
  • 17
  • 56
  • 61

Good morning, I'mI'm learning shader program and need some general direction.

I want to add noise to my laser beam (like this). Which

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!

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!

I'm learning shader program and need some general direction.

I want to add noise to my laser beam.

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?

Source Link
Jay
  • 453
  • 4
  • 17

GPU optimization question: pre-computed or procedural?

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!