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
// written by Golan Levin | |
// for example, huntForBlendFunc(1, -1, -1); | |
void huntForBlendFunc(float period, int defaultSid, int defaultDid){ | |
// sets all possible (24) combinations of blend functions, | |
// changing modes every period seconds. | |
int sfact[] = { | |
GL_ZERO, |
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
// this code takes a src string, | |
// tries to fine multiline strings that are | |
// of the form | |
// var fs = ` .... ` or let vs = `....` | |
// and tries to compress them via | |
// glslx | |
// I found renaming hard to manage so this is set to not rename. (my approach is to rename myself to something small) | |
function compressShaders(src) { |
OlderNewer