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
| #define USEHASH | |
| struct Functions | |
| { | |
| float4 hash4( float2 p ) { return frac(sin(float4( 1.0+dot(p,float2(37.0,17.0)), | |
| 2.0+dot(p,float2(11.0,47.0)), | |
| 3.0+dot(p,float2(41.0,29.0)), | |
| 4.0+dot(p,float2(23.0,31.0))))*103.0); } | |
| float4 textureNoTile(Texture2D iChannel0, SamplerState iChannel0Sampler, in float2 uv, Texture2D iChannel1, SamplerState iChannel1Sampler) |
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
| float3 BlurColor = Texture2DSample(Tex, TexSampler, UV + float2(Shift, Shift) / Resolution); | |
| BlurColor += Texture2DSample(Tex, TexSampler, UV + float2(Shift, -Shift) / Resolution); | |
| BlurColor += Texture2DSample(Tex, TexSampler, UV + float2(-Shift, Shift) / Resolution); | |
| BlurColor += Texture2DSample(Tex, TexSampler, UV + float2(-Shift, -Shift) / Resolution); | |
| BlurColor /= 4.0; | |
| return BlurColor; |
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
| struct Functions | |
| { | |
| float distLine(float2 p, float2 a, float2 b) { | |
| float2 ap = p - a; | |
| float2 ab = b - a; | |
| float aDotB = clamp(dot(ap, ab) / dot(ab, ab), 0.0, 1.0); | |
| return length(ap - ab * aDotB); | |
| } | |
| float drawLine(float2 uv, float2 a, float2 b) { |
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
| void mainImage( out vec4 fragColor, in vec2 fragCoord ) | |
| { | |
| // 0.5 - 1.5 - 2.5 - 3.5 | |
| KawaseSample(fragColor, fragCoord, 0.5); | |
| } |
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
| const float PI = 3.1415926535897932384626433832795; | |
| const float DoublePI = 2.0 * PI; | |
| const float CircleSize = 1.0; | |
| const float SmoothPadding = 0.33; | |
| const float Distance = 0.04; | |
| const float DistanceSteps = 8.0; | |
| const float RadialSteps = 8.0; | |
| const float RadialOffset = 0.5; |
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
| cd Extras/WebhookDemo | |
| # replace secret key | |
| jq -c '.store.secretKey = "'$MYSECRET'"' config.json > tmp.$$.json && mv tmp.$$.json config.json | |
| cat config.json | |
| # run node now | |
| npm install | |
| #pm2 delete all | |
| #BUILD_ID=dontKillMe pm2 restart bin/www -f |
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
| #!/bin/bash | |
| set -e | |
| FIND=/usr/bin/find | |
| GIT=/usr/bin/git | |
| XARGS=/usr/bin/xargs | |
| CLANG_FORMAT=/usr/bin/clang-format-6.0 | |
| DIRECTORY=%system.target.directory% |
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
| #!/usr/bin/env node | |
| const { spawn } = require('child_process'); | |
| const path = require('path'); | |
| // Set the paths where your UE4 is located | |
| const UE4Source = { | |
| Win: 'D:/Work/github/UnrealEngine', | |
| Mac: '/Users/Shared/Epic Games/UE_4.20' | |
| }; |