Quantcast
Channel: Questions in topic: "shader programming"
Viewing all articles
Browse latest Browse all 169

How to get the value of a pixel of a noise node if it's greater than some threshold?

$
0
0
I want to randomly generate some pixels on a shader, each with different brightness. I came up with a graph that has 1 simple noise node and a step node that only took the pixel of the noise if it above some threshold. The problem is the step node only returns either 0 or 1 for each pixel. How can I take the exact value of a pixel of the noise if it above some threshold?

Viewing all articles
Browse latest Browse all 169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>