Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f41dd72

Browse files
committed
add set max iterations
1 parent 4322511 commit f41dd72

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### setMaxIterations()
2+
3+
### Example
4+
5+
<!-- <iframe width="100%" height="450px" src="https://shaderpark.netlify.com/sculpture/-M2aYDh1dNIjNlCg8HLr?example=true&embed=true" frameborder="0"></iframe> -->
6+
7+
### Description
8+
9+
Sets the number of loops that are performed while raymarching(the underlying technique that allows us to render 3D shaders). Decreasing this number will speed up the rendering, but may cause artifacts. Increasing the number will slow down the rendering, but may improve the quality. You may want to combine this with [setStepSize()]((/references-js/global-settings/setStepSize.html)) to get a good balance.
10+
11+
### Syntax
12+
```js
13+
setMaxIterations(iterations);
14+
```
15+
16+
### Parameters
17+
**iterations** Int: value from 0 to any value.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /