Skip to content

Commit cdebb46

Browse files
authored
Update README with input channel usage guidelines
Add note about input channel limitations in ShaderToy
1 parent 4c1e0b2 commit cdebb46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ uniform samplerXX iChannel0..3; // input channel. XX = 2D/Cube
2525
uniform vec4 iDate; // (year, month, day, time in seconds)
2626
```
2727

28+
For certain effects that may use more then four input channels, you should specify that it won't work in ShaderToy in the article, and then continue incrementing the `iChannel` value by one (e.g `iChannel4`).
29+
2830
It's recommended to also test the code before committing it. :)
2931

3032
### Rule 2

0 commit comments

Comments
 (0)