Compare commits
5 Commits
Cutlery-Dr
...
njhanley/a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb4c7ddee6 | ||
| 4bc440e906 | |||
|
|
27b248d851 | ||
| e3c2e024bb | |||
|
|
b69610d7f3 |
@@ -58,6 +58,7 @@ int main(int argc, char *argv[])
|
|||||||
cout << " -p|--profile <prof> Run cool-retro-term with the given profile." << '\n';
|
cout << " -p|--profile <prof> Run cool-retro-term with the given profile." << '\n';
|
||||||
cout << " -h|--help Print this help." << '\n';
|
cout << " -h|--help Print this help." << '\n';
|
||||||
cout << " --verbose Print additional information such as profiles and settings." << '\n';
|
cout << " --verbose Print additional information such as profiles and settings." << '\n';
|
||||||
|
cout << " -v|--version Print the program name and version." << '\n';
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -746,7 +746,7 @@ QtObject {
|
|||||||
|
|
||||||
loadCustomProfiles()
|
loadCustomProfiles()
|
||||||
|
|
||||||
var profileArgPosition = args.indexOf("--profile")
|
var profileArgPosition = args.indexOf(/-p|--profile/)
|
||||||
if (profileArgPosition !== -1) {
|
if (profileArgPosition !== -1) {
|
||||||
var profileIndex = getProfileIndexByName(
|
var profileIndex = getProfileIndexByName(
|
||||||
args[profileArgPosition + 1])
|
args[profileArgPosition + 1])
|
||||||
|
|||||||
@@ -247,6 +247,17 @@ Item {
|
|||||||
" return outColor;
|
" return outColor;
|
||||||
}" +
|
}" +
|
||||||
|
|
||||||
|
//pseudo-random vector
|
||||||
|
//https://stackoverflow.com/a/10625698
|
||||||
|
"float random( vec2 p )
|
||||||
|
{
|
||||||
|
vec2 K1 = vec2(
|
||||||
|
23.14069263277926, // e^pi (Gelfond's constant)
|
||||||
|
2.665144142690225 // 2^sqrt(2) (Gelfond-Schneider constant)
|
||||||
|
);
|
||||||
|
return fract( cos( dot(p,K1) ) * 12345.6789 );
|
||||||
|
}" +
|
||||||
|
|
||||||
"void main() {" +
|
"void main() {" +
|
||||||
"vec2 cc = vec2(0.5) - qt_TexCoord0;" +
|
"vec2 cc = vec2(0.5) - qt_TexCoord0;" +
|
||||||
"float distance = length(cc);" +
|
"float distance = length(cc);" +
|
||||||
@@ -285,7 +296,11 @@ Item {
|
|||||||
: "") +
|
: "") +
|
||||||
|
|
||||||
(jitter !== 0 || staticNoise !== 0 ?
|
(jitter !== 0 || staticNoise !== 0 ?
|
||||||
"vec4 noiseTexel = texture2D(noiseSource, scaleNoiseSize * coords + vec2(fract(time / 51.0), fract(time / 237.0)));"
|
"vec4 noiseTexel = texture2D(
|
||||||
|
noiseSource, scaleNoiseSize * coords
|
||||||
|
+ vec2(0.0, random(vec2(fract(time / 237.0), 822.9582)))
|
||||||
|
+ vec2(fract(time / 31.0), fract(time / 177.0))
|
||||||
|
);"
|
||||||
: "") +
|
: "") +
|
||||||
|
|
||||||
(jitter !== 0 ? "
|
(jitter !== 0 ? "
|
||||||
|
|||||||
Reference in New Issue
Block a user