... * smoothstep(0,1, clamp(1-abs(g)) ) * smoothstep(0,1, clamp(1-abs(b)) ) Smooth! Too smooth? Maybe we should push the smooth out to the edges a little, get more of the boxy shape back. To do this, rather than smooth between 0 and 1, smooth between 0 and 0.2, pushing it to the edge of the box: smoothstep(0,0.2, clamp(1-abs(r)) ) * smoothstep(0,0.2, ...
Section: Tutorials, Interviews and Info Pages | Category: Written Tutorials | Date: Wednesday, 04 December 2013 | Hits: 134982