shader:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
shader:start [2025/05/28 10:35] – [Circle] mhshader:start [2025/06/02 21:23] (current) – external edit 127.0.0.1
Line 108: Line 108:
     return step1*step2;     return step1*step2;
 } }
 +</code>
 +
 +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, -.2, .2, b);
 +    mask *= drawBand(uv.y, -.2, .2, b);
 </code> </code>
 ==== Adding Color ==== ==== Adding Color ====
  • shader/start.1748421309.txt.gz
  • Last modified: 2025/06/02 21:18
  • (external edit)