Update README regarding STEPS uniform

This commit is contained in:
ChaoticByte 2025-04-09 19:09:32 +02:00
parent ebc8ce2cb9
commit 65fddc0bd8
No known key found for this signature in database

View file

@ -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
} }
``` ```