Update README regarding STEPS uniform
This commit is contained in:
parent
ebc8ce2cb9
commit
65fddc0bd8
1 changed files with 6 additions and 4 deletions
|
@ -62,15 +62,17 @@ Example:
|
||||||
//!load ...
|
//!load ...
|
||||||
//!steps 5
|
//!steps 5
|
||||||
|
|
||||||
uniform int STEP; // this is mandatory!
|
uniform int STEP;
|
||||||
|
uniform int STEPS;
|
||||||
|
|
||||||
void fragment() {
|
void fragment() {
|
||||||
if (STEP == 0) {
|
if (STEP == 0) {
|
||||||
...
|
...
|
||||||
} else if (STEP == 1) {
|
} else if (STEP == 1) {
|
||||||
...
|
...
|
||||||
|
} else if (STEP == STEPS-1) {
|
||||||
|
...
|
||||||
}
|
}
|
||||||
// ... and so on
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue