Fix missing STEP variable by making it mandatory to be defined as a uniform in the shader file
This commit is contained in:
parent
7ad9ef002a
commit
cc59ba9b9e
3 changed files with 16 additions and 10 deletions
|
@ -62,6 +62,8 @@ Example:
|
|||
//!load ...
|
||||
//!steps 5
|
||||
|
||||
uniform int STEP; // this is mandatory!
|
||||
|
||||
void fragment() {
|
||||
if (STEP == 0) {
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue