|
![](/i/fill.gif) |
You can also use this function I developed that's handy for checker-based
textures:
#declare smoothcheckerbasis = function (x,y,z,allfloors,xv,yv,zv) {
select(allfloors-floor(allfloors/2)*2,
0,
max(xv-.5,yv-.5,zv-.5, .5-xv,.5-yv,.5-zv),
min(xv+.5,yv+.5,zv+.5, 1.5-xv,1.5-yv,1.5-zv)
)
}
#declare smoothchecker = function (x,y,z) {
smoothcheckerbasis(x,y,z,floor(x)+floor(y)+floor(z),x-floor(x),y-floor(y),z-
floor(z))
}
Use it like:
function {smoothchecker(x,y+.5,z)}
(translated by .5 units to show the interesting part on the X-Z plane)
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
![](/i/fill.gif) |