0
Declined

Randomness/Noise

Tomáš Mariančík 10 years ago updated by Freya Holmér (Developer) 10 years ago 0
Is it possible to add some nodes for generating random values (or source of noise textures)? Either completely random or nodes that take some value as "seed" and output random value based on that (So 0.2 would give 0.8232 and 0.21 0.1223 for example - completely different values with small change of the input).

Answer

Answer
Declined
As far as I know, there's no way of doing that in shader code, as I've heard Unity's CG implementation doesn't support the noise() function either.

However, pretty much every shader out there that uses noise would use a noise texture, and sample from that, which should work :)

It might be a good idea to include a noise texture in the example assets though.

Thanks for the request anyhow!
Answer
Declined
As far as I know, there's no way of doing that in shader code, as I've heard Unity's CG implementation doesn't support the noise() function either.

However, pretty much every shader out there that uses noise would use a noise texture, and sample from that, which should work :)

It might be a good idea to include a noise texture in the example assets though.

Thanks for the request anyhow!