-
Notifications
You must be signed in to change notification settings - Fork 50
Pyramid
Lachlan McDonald edited this page Jun 7, 2020
·
27 revisions
The
pyandpy2shaders add a layer of voxel on top of voxels matching the selected colour. A voxel is only added when the voxel beneath has adjacent voxels, creating the effect of a pyramid.
-
pywill only add voxels when the adjacent voxels match the selected color. Whereas,py2will add voxels if there are adjacent voxels of any color.
- If provided,
indexwill be the color index of the added voxels. This parameter is optional; if set to0, the selected color index is used instead.
Each time the shader is executed, a single layer is added. To add multiple layers at once, use -n to set a number of iterations:
xs -n 50 py
xs -n 50 py2
When no axis modes are set, the shader will form a square pyramid. However, if either X or Y axis modes are set, the shader will form a pyramid with the slope facing the X or Y axis, respectively. Setting the Z-axis mode has no effect.
All content in this wiki is licenced under the CC BY-NC-SA 4.0 license. Code snippets are dual-licenced under the MIT License.