Comments (1)
Error in gl = Failed to format compiler error: TypeError: string.split is not a function
Gl Frag file code
void main()
{
gl_Position = ftransform();
gl_TexCoord[0] = gl_MultiTexCoord0;
}
// Scene buffer
uniform sampler2D tex0;
// Currently not used in this demo!
uniform float time;
// GeeXLab built-in uniform, width of
// the current render target
uniform float rt_w;
// GeeXLab built-in uniform, height of
// the current render target
uniform float rt_h;
// Swirl effect parameters
uniform float radius = 200.0;
uniform float angle = 0.8;
uniform vec2 center = vec2(400.0, 300.0);
vec4 PostFX(sampler2D tex, vec2 uv, float time)
{
vec2 texSize = vec2(rt_w, rt_h);
vec2 tc = uv * texSize;
tc -= center;
float dist = length(tc);
if (dist < radius)
{
float percent = (radius - dist) / radius;
float theta = percent * percent * angle * 8.0;
float s = sin(theta);
float c = cos(theta);
tc = vec2(dot(tc, vec2(c, -s)), dot(tc, vec2(s, c)));
}
tc += center;
vec3 color = texture2D(tex0, tc / texSize).rgb;
return vec4(color, 1.0);
}
void main (void)
{
vec2 uv = gl_TexCoord[0].st;
gl_FragColor = PostFX(tex0, uv, time);
}
from editly.
Related Issues (20)
- Feature request: add more ken burns parameters HOT 3
- Post processing using webgl
- Exploit shader from shadertoy HOT 7
- Getting this error after trying to install editly on Ubuntu HOT 1
- Can this be added to an existing application? HOT 1
- Cant run multiple editly render at once on linux: Caught error Error: write EPIPE HOT 2
- Build fails on latest NodeJS (MacOS Ventura, Intel) HOT 1
- Error while opening decoder for input stream #630:0 : Resource temporarily unavailable HOT 1
- Transparent Video Output
- Different Version of Canvas
- Editly Fails on 14.18.3 HOT 1
- Very slow video rendering HOT 3
- Remove the audio fadein when enable audio normalisation
- Chinese can not wraps lines automatically
- Feature Request: Nested Layers
- TypeError: createTransition is not a function
- gl mistake HOT 1
- Interrelation of durations for clips and transitions.
- AssertionError [ERR_ASSERTION]: cutFrom must be lower than cutTo
- Error: write EPIPE HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editly.