Public
Edited
Apr 25
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
glProgram = PIXI.compileHighShaderGlProgram({
name: "ibfv-shader",
bits: [
{
fragment: {
header: /*glsl*/ `
uniform float uMaximumFlow;
uniform sampler2D uVectorField;
uniform sampler2D uSampler;
uniform sampler2D uNoise;
`,
main: /*glsl*/ `
vec4 noise = vec4(vec3(texture(uNoise, vUV).r), 1.0);
vec2 flow = texture(uVectorField, vUV).rg;
flow = flow * min(uMaximumFlow / length(flow), 1.0);
outColor = mix(texture(uSampler, fract(vUV - flow)), noise, 0.05);
`
}
}
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more