From 65fddc0bd8fff83767fafd3fe90f9470bb89afed Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Wed, 9 Apr 2025 19:09:32 +0200 Subject: [PATCH] Update README regarding STEPS uniform --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 02aa022..a12517b 100644 --- a/README.md +++ b/README.md @@ -62,15 +62,17 @@ Example: //!load ... //!steps 5 -uniform int STEP; // this is mandatory! +uniform int STEP; +uniform int STEPS; void fragment() { if (STEP == 0) { - ... + ... } else if (STEP == 1) { - ... + ... + } else if (STEP == STEPS-1) { + ... } - // ... and so on } ```