-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbaa8ae
commit 078efd1
Showing
6 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// To learn how to write nodes, see https://coollab-art.com/Tutorials/Writing%20Nodes/Intro | ||
INPUT float 'Period'; | ||
INPUT float 'Fraction of time when Min value is active'; | ||
INPUT float 'Duration of Min'; | ||
INPUT float 'Min'; | ||
INPUT float 'Max'; | ||
|
||
float main(float x) | ||
{ | ||
x = mod(x, 'Period'); | ||
return x < 'Period' * 'Fraction of time when Min value is active' | ||
return x < 'Period' * 'Duration of Min' | ||
? 'Min' | ||
: 'Max'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// To learn how to write nodes, see https://coollab-art.com/Tutorials/Writing%20Nodes/Intro | ||
|
||
INPUT float 'X'; | ||
INPUT float 'Y'; | ||
INPUT float 'Z'; | ||
INPUT float 'W'; | ||
|
||
vec4 main() | ||
{ | ||
return vec4('X', 'Y', 'Z', 'W'); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters