This file contains hidden or 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
| // Processing code by Etienne Jacob | |
| // motion blur template by beesandbombs, explanation/article: https://bleuje.com/tutorial6/ | |
| // See the license information at the end of this file. | |
| // see result here: https://mastodon.social/@bleuje/111706027080323463 | |
| ////////////////////////////////////////////////////////////////////////////// | |
| // Start of template | |
| int[][] result; // pixel colors buffer for motion blur |
This file contains hidden or 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
| // Processing code by Etienne JACOB | |
| // motion blur template by beesandbombs | |
| // opensimplexnoise code in another tab might be necessary | |
| // --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e | |
| int[][] result; | |
| float t, c; | |
| float ease(float p) { | |
| return 3*p*p - 2*p*p*p; |
This file contains hidden or 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
| // Processing code by Etienne JACOB | |
| // motion blur template by beesandbombs | |
| int[][] result; | |
| float t, c; | |
| float ease(float p, float g) { | |
| if (p < 0.5) | |
| return 0.5 * pow(2*p, g); | |
| else |