Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
shader:start [2025/05/28 10:35] – [Circle] mh | shader:start [2025/06/02 21:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 108: | Line 108: | ||
return step1*step2; | return step1*step2; | ||
} | } | ||
+ | </ | ||
+ | |||
+ | Then get a rectangle by calling this function twice on the x and y : | ||
+ | |||
+ | <code glsl> | ||
+ | float mask = 0.; | ||
+ | float b = .01; | ||
+ | | ||
+ | mask = drawBand(uv.x, | ||
+ | mask *= drawBand(uv.y, | ||
</ | </ | ||
==== Adding Color ==== | ==== Adding Color ==== |