Fix missing STEP variable by making it mandatory to be defined as a uniform in the shader file

This commit is contained in:
ChaoticByte 2025-02-05 17:48:49 +01:00
parent 7ad9ef002a
commit cc59ba9b9e
No known key found for this signature in database
3 changed files with 16 additions and 10 deletions

View file

@ -62,6 +62,8 @@ Example:
//!load ...
//!steps 5
uniform int STEP; // this is mandatory!
void fragment() {
if (STEP == 0) {
...