Answer the question
In order to leave comments, you need to log in
What is the active background effect of this resource based on?
Resource: www.pics.tokyo
The effect can be observed when viewing the menu or any internal page
What is it based on and implemented?
Answer the question
In order to leave comments, you need to log in
I'm pretty sure it's related to this script - https://www.pics.tokyo/wp-content/themes/pics/asse... . I opened it, looked - so it has its own architecture there, it pulls files from many folders, and one of the files that it pulls was like this:
precision mediump float;
uniform sampler2D velocity;
uniform sampler2D pressure;
uniform float redMax;
uniform float redMin;
uniform float redRate;
uniform float greenMax;
uniform float greenMin;
uniform float greenRate;
uniform float blueMax;
uniform float blueMin;
uniform float blueRate;
varying vec2 uv;
void main(){
gl_FragColor = vec4(
//(texture2D(pressure, uv)).x,
//(texture2D(velocity, uv) * 1.5 + 0.5).xy,
max(redMax - texture2D(velocity, uv).x * redRate, redMin),
max(greenMax - texture2D(velocity, uv).y * greenRate, greenMin),
max(blueMax - (texture2D(pressure, uv)).x * blueRate, blueMin),
1.0);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question