Can I generate a random number inside a pixel shader?

前端 未结 4 854
情歌与酒
情歌与酒 2020-12-03 04:06

I\'m trying to write a very simple shader that adds random sparkle to applicable objects. The way I\'d like to do this is by adding a random shade of white (R = G = B) to th

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 04:35

    what if you can get a checksum of the whole frame and use it as a seed. that way if anything on the frame is moving the selection you are trying to randomize will be shifting with the frame.

提交回复
热议问题