- Home /
Question by
Long2904 · Apr 08, 2021 at 10:52 AM ·
2dshadershader programmingnoise
How to get the value of a pixel of a noise node if it's greater than some threshold?
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?
Comment
Your answer
Follow this Question
Related Questions
2d Shader: How to show camera view on a sprite? 1 Answer
How to make Standard Shader _Color property be Per Instance Data? 0 Answers
Shader graph node that return the value of the input node if it's greater than some value? 0 Answers
How to make a 2d pixel art shader for a glass window that show outer space? 0 Answers