2 added 259 characters in body
source | link

Modulus is the operation that is used to repeat space.

If you take N mod 5, as you increase N, you'll get [0, 5) over and over and over.

If you want to constrain it to just repeating a certain number of times, you can use clamp before modulus. When doing this, make sure that the value you clamp at is associated with empty space though, so you don't have geometry extending off into infinity.

Here is a link you are likely interested in (:

http://iquilezles.org/www/articles/distfunctions/distfunctions.htm

Modulus is the operation that is used to repeat space.

If you take N mod 5, as you increase N, you'll get [0, 5) over and over and over.

Here is a link you are likely interested in (:

http://iquilezles.org/www/articles/distfunctions/distfunctions.htm

Modulus is the operation that is used to repeat space.

If you take N mod 5, as you increase N, you'll get [0, 5) over and over and over.

If you want to constrain it to just repeating a certain number of times, you can use clamp before modulus. When doing this, make sure that the value you clamp at is associated with empty space though, so you don't have geometry extending off into infinity.

Here is a link you are likely interested in (:

http://iquilezles.org/www/articles/distfunctions/distfunctions.htm

1
source | link

Modulus is the operation that is used to repeat space.

If you take N mod 5, as you increase N, you'll get [0, 5) over and over and over.

Here is a link you are likely interested in (:

http://iquilezles.org/www/articles/distfunctions/distfunctions.htm